Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/15 10:19:37 (10 years ago)
Author:
abeham
Message:

#2174:

  • Removed compilation calls from the problem (AfterDeserialization and in cloning constructor) and instead compile instance lazily when accessed
  • Compile support code in ExternalEvaluationProblem lazy
  • Fixed encoding class names in template code files (forgot to add vector)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/Scripts/Templates/CompiledSingleObjectiveProblemDefinition.cs

    r11880 r11900  
    1616      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
    1717      // Define the solution encoding which can also consist of multiple vectors, examples below
    18       //Encoding = new BinaryEncoding("b", length: 5);
    19       //Encoding = new IntegerEncoding("i", length: 5, min: 2, max: 14, step: 2);
    20       //Encoding = new RealEncoding("r", length: 5, min: -1.0, max: 1.0);
     18      //Encoding = new BinaryVectorEncoding("b", length: 5);
     19      //Encoding = new IntegerVectorEncoding("i", length: 5, min: 2, max: 14, step: 2);
     20      //Encoding = new RealVectorEncoding("r", length: 5, min: -1.0, max: 1.0);
    2121      //Encoding = new PermutationEncoding("p", length: 5, type: PermutationTypes.Absolute);
    2222      // The encoding can also be a combination
    2323      //Encoding = new MultiEncoding()
    24       //.Add(new BinaryEncoding("b", length: 5))
    25       //.Add(new IntegerEncoding("i", length: 5, min: 2, max: 14, step: 4))
    26       //.Add(new RealEncoding("r", length: 5, min: -1.0, max: 1.0))
     24      //.Add(new BinaryVectorEncoding("b", length: 5))
     25      //.Add(new IntegerVectorEncoding("i", length: 5, min: 2, max: 14, step: 4))
     26      //.Add(new RealVectorEncoding("r", length: 5, min: -1.0, max: 1.0))
    2727      //.Add(new PermutationEncoding("p", length: 5, type: PermutationTypes.Absolute))
    2828      ;
Note: See TracChangeset for help on using the changeset viewer.