- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs
r8085 r8206 58 58 get { return (FixedValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; } 59 59 } 60 public ConstrainedValueParameter<ILocalImprovementOperator> LocalImprovementParameter {61 get { return ( ConstrainedValueParameter<ILocalImprovementOperator>)Parameters["LocalImprovement"]; }62 } 63 public ConstrainedValueParameter<IMultiNeighborhoodShakingOperator> ShakingOperatorParameter {64 get { return ( ConstrainedValueParameter<IMultiNeighborhoodShakingOperator>)Parameters["ShakingOperator"]; }60 public IConstrainedValueParameter<ILocalImprovementOperator> LocalImprovementParameter { 61 get { return (IConstrainedValueParameter<ILocalImprovementOperator>)Parameters["LocalImprovement"]; } 62 } 63 public IConstrainedValueParameter<IMultiNeighborhoodShakingOperator> ShakingOperatorParameter { 64 get { return (IConstrainedValueParameter<IMultiNeighborhoodShakingOperator>)Parameters["ShakingOperator"]; } 65 65 } 66 66 private FixedValueParameter<IntValue> MaximumIterationsParameter { … … 294 294 LocalImprovementParameter.ValidValues.Clear(); 295 295 } else { 296 LocalImprovementParameter.ValidValues.RemoveWhere(x => !x.ProblemType.IsAssignableFrom(Problem.GetType())); 296 foreach (var entry in LocalImprovementParameter.ValidValues.ToList()) { 297 if (!entry.ProblemType.IsAssignableFrom(Problem.GetType())) { 298 LocalImprovementParameter.ValidValues.Remove(entry); 299 } 300 } 297 301 foreach (ILocalImprovementOperator op in ApplicationManager.Manager.GetInstances<ILocalImprovementOperator>().Where(x => x.ProblemType.IsAssignableFrom(Problem.GetType()))) { 298 302 if (!LocalImprovementParameter.ValidValues.Any(x => x.GetType() == op.GetType()))
Note: See TracChangeset
for help on using the changeset viewer.