Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/26/19 10:02:47 (5 years ago)
Author:
abeham
Message:

#2521: worked on removing virtual from Maximization for single-objective problems

Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/ArtificialAnt/Problem.cs

    r17226 r17270  
    9898    #endregion
    9999
    100     public override bool Maximization {
    101       get { return true; }
    102     }
    103 
    104100    #region item cloning and persistence
    105101    // persistence
     
    117113
    118114    public Problem() : base(new SymbolicExpressionTreeEncoding()) {
     115      Maximization = true;
    119116      BoolMatrix world = new BoolMatrix(ToBoolMatrix(santaFeAntTrail));
    120117      Parameters.Add(new ValueParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.", world));
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/BasicSymbolicRegression/Problem.cs

    r17226 r17270  
    6060    public event EventHandler ProblemDataChanged;
    6161
    62     public override bool Maximization {
    63       get { return true; }
    64     }
    65 
    6662    #region item cloning and persistence
    6763    // persistence
     
    8278
    8379    public Problem() : base(new SymbolicExpressionTreeEncoding()) {
     80      Maximization = true;
    8481      Parameters.Add(new ValueParameter<IRegressionProblemData>(ProblemDataParameterName, "The data for the regression problem", new RegressionProblemData()));
    8582
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/EvenParityProblem.cs

    r17226 r17270  
    5454    #endregion
    5555
    56     public override bool Maximization {
    57       get { return true; }
    58     }
    59 
    6056    #region item cloning and persistence
    6157    // persistence
     
    7975    public EvenParityProblem()
    8076      : base(new SymbolicExpressionTreeEncoding()) {
     77      Maximization = true;
    8178      Parameters.Add(new FixedValueParameter<IntValue>(NumberOfBitsParameterName, "The number of bits for the input parameter for the even parity function", new IntValue(4)));
    8279
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs

    r17226 r17270  
    5656    #endregion
    5757
    58     public override bool Maximization {
    59       get { return true; }
    60     }
    61 
    6258    #region item cloning and persistence
    6359    // persistence
     
    8278    public MultiplexerProblem()
    8379      : base(new SymbolicExpressionTreeEncoding()) {
     80      Maximization = true;
    8481      Parameters.Add(new FixedValueParameter<IntValue>(NumberOfBitsParameterName,
    8582        "The number of bits for the input parameter for the multiplexer function. This is the sum of the number of address bits and the number of input lines. E.g. the 11-MUX has 3 address bits and 8 input lines",
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/LawnMower/Problem.cs

    r17226 r17270  
    4646    }
    4747
    48     public override bool Maximization {
    49       get { return true; }
    50     }
    51 
    5248    #region item cloning and persistence
    5349    [StorableConstructor]
     
    6359
    6460    public Problem() : base(new SymbolicExpressionTreeEncoding()) {
     61      Maximization = true;
    6562      Parameters.Add(new FixedValueParameter<IntValue>(LawnWidthParameterName, "Width of the lawn.", new IntValue(8)));
    6663      Parameters.Add(new FixedValueParameter<IntValue>(LawnLengthParameterName, "Length of the lawn.", new IntValue(8)));
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/robocode/Problem.cs

    r17226 r17270  
    7474
    7575    public Problem() : base(new SymbolicExpressionTreeEncoding(new Grammar(), maximumLength: 1000, maximumDepth: 10)) {
     76      Maximization = true;
    7677      DirectoryValue robocodeDir = new DirectoryValue { Value = @"robocode" };
    7778
     
    124125    }
    125126
    126     public override bool Maximization {
    127       get { return true; }
    128     }
    129 
    130127    private void RegisterEventHandlers() {
    131128      RobocodePathParameter.Value.StringValue.ValueChanged += RobocodePathParameter_ValueChanged;
Note: See TracChangeset for help on using the changeset viewer.