Changeset 13396 for branches/ProblemRefactoring/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement/QAPStochasticScrambleLocalImprovement.cs
- Timestamp:
- 11/25/15 16:22:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement/QAPStochasticScrambleLocalImprovement.cs
r12811 r13396 34 34 [Item("QAPStochasticScrambleLocalImprovement", "Takes a solution and finds the local optimum with respect to the scramble neighborhood by decending along the steepest gradient.")] 35 35 [StorableClass] 36 public class QAPStochasticScrambleLocalImprovement : SingleSuccessorOperator, I LocalImprovementOperator, IStochasticOperator, ISingleObjectiveOperator {36 public class QAPStochasticScrambleLocalImprovement : SingleSuccessorOperator, IQAPLocalImprovementOperator, IStochasticOperator, ISingleObjectiveOperator { 37 37 38 38 public ILookupParameter<IntValue> LocalIterationsParameter { … … 56 56 } 57 57 58 public ILookupParameter<Permutation> AssignmentParameter {59 get { return (ILookupParameter<Permutation>)Parameters[" Assignment"]; }58 public ILookupParameter<Permutation> PermutationParameter { 59 get { return (ILookupParameter<Permutation>)Parameters["Permutation"]; } 60 60 } 61 61 … … 92 92 Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The amount of evaluated solutions (here a move is counted only as 4/n evaluated solutions with n being the length of the permutation).")); 93 93 Parameters.Add(new LookupParameter<ResultCollection>("Results", "The collection where to store results.")); 94 Parameters.Add(new LookupParameter<Permutation>(" Assignment", "The permutation that is to be locally optimized."));94 Parameters.Add(new LookupParameter<Permutation>("Permutation", "The permutation that is to be locally optimized.")); 95 95 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality value of the assignment.")); 96 96 Parameters.Add(new LookupParameter<BoolValue>("Maximization", "True if the problem should be maximized or minimized.")); … … 132 132 var maxIterations = MaximumIterationsParameter.ActualValue.Value; 133 133 var neighborhoodSize = NeighborhoodSizeParameter.ActualValue.Value; 134 var assignment = AssignmentParameter.ActualValue;134 var assignment = PermutationParameter.ActualValue; 135 135 var maximization = MaximizationParameter.ActualValue.Value; 136 136 var weights = WeightsParameter.ActualValue;
Note: See TracChangeset
for help on using the changeset viewer.