Changeset 7419 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/GQAPSolutionCreator.cs
- Timestamp:
- 01/27/12 13:24:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/GQAPSolutionCreator.cs
r7373 r7419 31 31 [Item("GQAPSolutionCreator", "Base class for solution creators of the Generalized Quadratic Assignment Problem.")] 32 32 [StorableClass] 33 public abstract class GQAPSolutionCreator : SingleSuccessorOperator, IGQAPSolutionCreator { 33 public abstract class GQAPSolutionCreator : SingleSuccessorOperator, IDemandsAwareGQAPOperator, ICapacitiesAwareGQAPOperator, IGQAPSolutionCreator { 34 35 #region Parameter Descriptions 36 public static readonly string AssignmentDescription = "The vector that encodes the assignment."; 37 #endregion 34 38 35 39 public ILookupParameter<IntegerVector> AssignmentParameter { 36 40 get { return (ILookupParameter<IntegerVector>)Parameters["Assignment"]; } 37 41 } 42 public ILookupParameter<DoubleArray> DemandsParameter { 43 get { return (ILookupParameter<DoubleArray>)Parameters["Demands"]; } 44 } 38 45 public ILookupParameter<DoubleArray> CapacitiesParameter { 39 46 get { return (ILookupParameter<DoubleArray>)Parameters["Capacities"]; } 40 }41 public ILookupParameter<DoubleArray> DemandsParameter {42 get { return (ILookupParameter<DoubleArray>)Parameters["Demands"]; }43 47 } 44 48 … … 49 53 public GQAPSolutionCreator() 50 54 : base() { 51 Parameters.Add(new LookupParameter<IntegerVector>("Assignment", "Creates an assignment for the Generalized Quadratic Assignment Problem."));52 Parameters.Add(new LookupParameter<DoubleArray>(" Capacities", "The capacities vector describes the available space at the locations."));53 Parameters.Add(new LookupParameter<DoubleArray>(" Demands", "The demands vector describes the space requirements of the equipments."));55 Parameters.Add(new LookupParameter<IntegerVector>("Assignment", AssignmentDescription)); 56 Parameters.Add(new LookupParameter<DoubleArray>("Demands", GeneralizedQuadraticAssignmentProblem.DemandsDescription)); 57 Parameters.Add(new LookupParameter<DoubleArray>("Capacities", GeneralizedQuadraticAssignmentProblem.CapacitiesDescription)); 54 58 } 55 59
Note: See TracChangeset
for help on using the changeset viewer.