Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3071


Ignore:
Timestamp:
03/16/10 18:16:42 (15 years ago)
Author:
svonolfe
Message:

Added BestKnownQuality parameter to Knapsack (#917)

File:
1 edited

Legend:

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

    r3070 r3071  
    7373      get { return EvaluatorParameter; }
    7474    }
     75    public OptionalValueParameter<DoubleValue> BestKnownQualityParameter {
     76      get { return (OptionalValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
     77    }
    7578    #endregion
    7679
     
    9295    IEvaluator IProblem.Evaluator {
    9396      get { return EvaluatorParameter.Value; }
     97    }
     98    public DoubleValue BestKnownQuality {
     99      get { return BestKnownQualityParameter.Value; }
     100      set { BestKnownQualityParameter.Value = value; }
    94101    }
    95102    private List<IBinaryVectorOperator> operators;
     
    113120      Parameters.Add(new ValueParameter<IBinaryVectorCreator>("SolutionCreator", "The operator which should be used to create new Knapsack solutions.", creator));
    114121      Parameters.Add(new ValueParameter<IKnapsackEvaluator>("Evaluator", "The operator which should be used to evaluate Knapsack solutions.", evaluator));
     122      Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this Knapsack instance."));
    115123
    116124      creator.BinaryVectorParameter.ActualName = "KnapsackSolution";
Note: See TracChangeset for help on using the changeset viewer.