Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Mappings/tsp.xml @ 9922

Last change on this file since 9922 was 9350, checked in by fschoepp, 12 years ago

#1888:

  • Added input parameters to the run class. They will be populated by the back-end and returned to the web pages which renders them.
  • Added a ParameterMapper class which converts HL specific model classes to OaaS independent classes. The conversion gets delegated to IParameterHandler which have to be implemented manually and registered for a certain Type before. All parameters which can be converted to IStringConvertible, IStringConvertibleMatrix, IString* will be converted into a OaaS-StringValue instance.
  • Added IParameterHandlers for PathTSPTour and PermutationType (required for TSP).
  • AlgorithmConverter now makes sure that the id of a run is unique. (All runs of a RunList will be shown now.)
  • Web pages are capable of rendering both the results of a run and their input parameters (added a accordion to wrap their content).
  • Renamed "Traveling Salesman Problem" to "Genetic Algorithm - TSP".
  • Changed js-files to render both input and result parameters of a Run.
File size: 1.9 KB
Line 
1<?xml version='1.0'?>
2<scenario xmlns="urn:scenario-schema">
3  <name>Genetic Algorithm - TSP</name>
4  <algorithm mapper="HeuristicLab.Mappers.TSPScenarioMapper">
5    <parameters>
6    <param type="Type" name="CrossoverParameter">
7      <choice name="OrderCrossover2"/>
8      <choice name="CosaCrossover" selected="true"/>
9    </param>   
10    <param type="Integer" name="Elites" value="1"/>
11    <param type="Integer" name="MaximumGenerations" value="1000"/>
12    <param type="Percent" name="MutationProbability" value="5"/>
13    <param type="Type" name="Mutator">
14      <choice name="InversionManipulator" selected="true"/>
15      <choice name="ScrambleManipulator"/>
16    </param>
17    <param type="Integer" name="PopulationSize" value="100"/>
18    <param type="Integer" name="Seed" value="100"/>
19    <param type="Type" name="Selector">
20      <choice name="ProportionalSelector" selected="true"/>
21      <choice name="BestSelector"/>
22    </param>
23    <param type="Boolean" name="SetSeedRandomly" value="true"/>
24    </parameters>
25  <problem>
26    <parameters>
27      <param type="Decimal" name="BestKnownQuality" value="6110.0"/>
28      <param type="DecimalVector" name="BestKnownSolution">
29        <value v1="0"/>
30        <value v1="40"/>
31        <value v1="38"/>
32        <value v1="60"/>
33      </param>
34      <param type="DecimalMatrix" name="Coordinates">
35        <value v1="334.5909" v2="161.7809"/>
36        <value v1="503.5909" v2="172.7809"/>
37        <value v1="400.5909" v2="300.7809"/>
38        <value v1="700.5909" v2="700.7809"/>
39      </param>
40      <param type="Type" name="EvaluatorParameter">
41        <choice name="HeuristicLab.Problems.TravelingSalesman.TSPRoundedEuclideanPathEvaluator" />
42        <choice name="HeuristicLab.Problems.TravelingSalesman.TSPGeoPathEvaluator" selected="true"/>
43        <choice name="HeuristicLab.Problems.TravelingSalesman.TSPEuclideanPathEvaluator"/>
44      </param>   
45      <param type="Boolean" name="UseDistanceMatrix" value="true"/>
46    </parameters>
47  </problem>
48  </algorithm>
49</scenario>
Note: See TracBrowser for help on using the repository browser.