Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/15 00:03:14 (9 years ago)
Author:
abeham
Message:

#2174:

  • Added IImprovmentOperator interface to SingleObjectiveImprover
  • Added Random parameter to Analyze method and IStochasticOperator interface to the resp. analyzer
  • Updated code template text of the compiled single- and multi-objective problem definitions
  • Prevent ProblemDefinitionScript from silently ignoring exceptions
  • Added equality comparer in Encoding's cloning constructor
  • Small adaption of ProblemDefinitionScriptView to changes in new code editor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveProgrammableProblem.cs

    r11814 r11880  
    5151      try {
    5252        ProblemScript.Compile();
    53       }
    54       catch (InvalidOperationException) {
     53      } catch (InvalidOperationException) {
    5554        //Compilation error
    5655      }
     
    7574      try {
    7675        ProblemScript.Compile();
    77       }
    78       catch (InvalidOperationException) {
     76      } catch (InvalidOperationException) {
    7977        //Compilation error
    8078      }
     
    9795    }
    9896
    99     public override void Analyze(Individual[] individuals, double[] qualities, ResultCollection results) {
    100       ProblemDefinition.Analyze(individuals, qualities, results);
     97    public override void Analyze(Individual[] individuals, double[] qualities, ResultCollection results, IRandom random) {
     98      ProblemDefinition.Analyze(individuals, qualities, results, random);
    10199    }
    102100    public override IEnumerable<Individual> GetNeighbors(Individual individual, IRandom random) {
Note: See TracChangeset for help on using the changeset viewer.