Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/12 10:57:14 (12 years ago)
Author:
fschoepp
Message:

#1888:

  • Added a parser for independent scenarios (using the model of the optimization backend)
  • Optimization scenario sample can be found in mappings folder of the web project.
  • Added IScenarioMapper interface which provides functionality to map from the optimization data model to a backend model (e.g. Heuristic Lab data model)
  • Implementations of IScenarioMapper have to be provided as C# code (strings) which will be compiled by using a CSharpCodeProvider. Once compiled, the implementations of the IScenarioMapper are being cached within the platform for further usage.
  • Fixed a bug in web template DecimalMatrix (using i instead of j)
  • Added missing thumprint of localhost certificate to the optimization web project (ServiceConfiguration.Local.cscfg / ServiceConfiguration.Cloud.cscfg)
  • Test project now provides following test cases: Mapping types using IronPython and mapping types using Otis
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Controller/Model/ControllerModel.cs

    r8545 r8817  
    8080
    8181    public override bool TrySetFromString(string input) {
    82       var splitted = input.Split(':');
    83       int index;
     82      var splitted = input.Split(':');     
     83      int index;     
    8484      if (splitted.Length != 2)
    8585        return false;
     
    191191      set { items = value; }
    192192    }
     193
     194    public Parameter FindByName(string name) {
     195      foreach (var param in items) {
     196        if (param.Value.Name == name) {         
     197          return param;
     198        }
     199      }
     200      return null;
     201    }
    193202  }
    194203
     
    202211      set { items = value; }
    203212    }
     213
     214    public Parameter FindByName(string name) {
     215      foreach (var param in items) {
     216        if (param.Value.Name == name) {
     217          return param;
     218        }
     219      }
     220      return null;
     221    }
    204222  }
    205223
     
    208226    [DataMember]
    209227    public string Name { get; set; }
     228
     229    [DataMember]
     230    public string ProblemType { get; set; }
     231
     232    [DataMember]
     233    public string AlgorithmType { get; set; }
     234
     235    [DataMember]
     236    public string MapperType { get; set; }
    210237
    211238    private InputParameters inputParams = new InputParameters();
Note: See TracChangeset for help on using the changeset viewer.