Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/12/15 21:49:06 (9 years ago)
Author:
mkommend
Message:

#2282: Fixed maximization flag and solution creators for binary problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs

    r11961 r11996  
    2424using HeuristicLab.Common.Resources;
    2525using HeuristicLab.Core;
     26using HeuristicLab.Data;
    2627using HeuristicLab.Optimization;
    2728using HeuristicLab.Parameters;
     
    7374
    7475    private void OnProblemDefinitionChanged() {
     76      if (Parameters.ContainsKey("Maximization")) Parameters.Remove("Maximization");
     77      Parameters.Add(new ValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", (BoolArray)new BoolArray(Maximization).AsReadOnly()));
     78
    7579      Encoding = ProblemDefinition.Encoding;
    7680      OnOperatorsChanged();
Note: See TracChangeset for help on using the changeset viewer.