Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.ControllerService.Tests/mappings/tsp.xml @ 8978

Last change on this file since 8978 was 8817, checked in by fschoepp, 12 years ago

#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 size: 2.0 KB
RevLine 
[8817]1<?xml version='1.0'?>
2<scenario problemType="HeuristicLab.Problems.TravelingSalesman.TravelingSalesman"
3          algorithmType="HeuristicLab.Algorithms.GeneticAlgorithm"
4      xmlns="urn:scenario-schema"
5          mapper="HeuristicLab.Controllers.HLMapper">
6  <name>Traveling Salesman Problem</name>
7  <problemParameters>
8    <param type="Decimal" name="BestKnownQuality" value="6110.0"/>
9    <param type="DecimalVector" name="BestKnownSolution">
10      <value v1="0"/>
11      <value v1="40"/>
12      <value v1="38"/>
13    </param>
14    <param type="DecimalMatrix" name="Coordinates">
15      <value v1="334.5909" v2="161.7809"/>
16      <value v1="503.5909" v2="172.7809"/>
17    </param>
18    <param type="Type" name="EvaluatorParameter">
19      <choice name="HeuristicLab.Problems.TravelingSalesman.TSPRoundedEuclideanPathEvaluator" />
20      <choice name="HeuristicLab.Problems.TravelingSalesman.TSPGeoPathEvaluator" selected="true"/>
21      <choice name="HeuristicLab.Problems.TravelingSalesman.TSPEuclideanPathEvaluator"/>
22    </param>   
23    <param type="Boolean" name="UseDistanceMatrix" value="true"/>
24  </problemParameters>
25  <algorithmParameters>
26    <param type="Type" name="CrossoverParameter">
27      <choice name="OrderCrossover2"/>
28      <choice name="CosaCrossover" selected="true"/>
29    </param>   
30    <param type="Integer" name="Elites" value="1"/>
31    <param type="Integer" name="MaximumGenerations" value="1000"/>
32    <param type="Percent" name="MutationProbability" value="5"/>
33    <param type="Type" name="Mutator">
34      <choice name="InversionManipulator" selected="true"/>
35      <choice name="ScrambleManipulator"/>
36    </param>
37    <param type="Integer" name="PopulationSize" value="100"/>
38    <param type="Integer" name="Seed" value="100"/>
39    <param type="Type" name="Selector">
40      <choice name="ProportionalSelector" selected="true"/>
41      <choice name="BestSelector"/>
42    </param>
43    <param type="Boolean" name="SetSeedRandomly" value="true"/>
44  </algorithmParameters>
45</scenario>
Note: See TracBrowser for help on using the repository browser.