- Timestamp:
- 02/01/12 00:14:00 (13 years ago)
- Location:
- branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/BestGQAPSolutionAnalyzer.cs
r7432 r7437 165 165 GQAPAssignment assignment = BestSolutionParameter.ActualValue; 166 166 if (assignment == null) { 167 assignment = new GQAPAssignment((IntegerVector)assignments[bestIndex].Clone(), (DoubleValue)qualities[bestIndex].Clone(), flowDistanceQualities[bestIndex], overbookedCapacities[bestIndex], installationQualities[bestIndex], equipmentNames, locationNames, distances, weights, installationCosts, demands, capacities, transportationCosts, overbookedCapacityPenalty);167 assignment = new GQAPAssignment((IntegerVector)assignments[bestIndex].Clone(), (DoubleValue)qualities[bestIndex].Clone(), flowDistanceQualities[bestIndex], installationQualities[bestIndex], overbookedCapacities[bestIndex], equipmentNames, locationNames, distances, weights, installationCosts, demands, capacities, transportationCosts, overbookedCapacityPenalty); 168 168 assignment.Distances = distances; 169 169 BestSolutionParameter.ActualValue = assignment; -
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/GQAPSolutionArchiveAnalyzer.cs
r7423 r7437 178 178 && front[i].InstallationQuality.Value > front[j].InstallationQuality.Value) { 179 179 front.RemoveAt(i); 180 j = i + 1;180 j = i; 181 181 } 182 182 } -
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/GQAPAssignment.cs
r7432 r7437 160 160 this.solution = new GQAPSolution(assignment, quality, flowDistanceQuality, installationQuality, overbookedCapacity); 161 161 } 162 public GQAPAssignment(IntegerVector assignment, DoubleValue quality, DoubleValue flowDistanceQuality, DoubleValue overbookedCapacity, DoubleValue installationQuality, StringArray equipmentNames, StringArray locationNames, DoubleMatrix distances, DoubleMatrix weights, DoubleMatrix installationCosts, DoubleArray demands, DoubleArray capacities, DoubleValue transportationCosts, DoubleValue overbookedCapacityPenalty)162 public GQAPAssignment(IntegerVector assignment, DoubleValue quality, DoubleValue flowDistanceQuality, DoubleValue installationQuality, DoubleValue overbookedCapacity, StringArray equipmentNames, StringArray locationNames, DoubleMatrix distances, DoubleMatrix weights, DoubleMatrix installationCosts, DoubleArray demands, DoubleArray capacities, DoubleValue transportationCosts, DoubleValue overbookedCapacityPenalty) 163 163 : this(assignment, quality, flowDistanceQuality, installationQuality, overbookedCapacity) { 164 this.equipmentNames = equipmentNames; 165 this.locationNames = locationNames; 164 166 this.distances = distances; 165 167 this.weights = weights; -
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/GeneralizedQuadraticAssignmentProblem.cs
r7432 r7437 229 229 230 230 private void InitializeOperators() { 231 Operators.Clear(); 231 232 Operators.Add(new BestGQAPSolutionAnalyzer()); 232 233 Operators.Add(new GQAPSolutionArchiveAnalyzer()); -
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/HeuristicLab.Problems.GeneralizedQuadraticAssignment-3.3.csproj
r7432 r7437 38 38 </PropertyGroup> 39 39 <ItemGroup> 40 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86"> 41 <SpecificVersion>False</SpecificVersion> 42 <Private>False</Private> 43 </Reference> 40 44 <Reference Include="HeuristicLab.Collections-3.3"> 41 45 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> … … 90 94 <ItemGroup> 91 95 <Compile Include="Analyzers\BestGQAPSolutionAnalyzer.cs" /> 96 <Compile Include="Analyzers\GQAPPopulationDiversityAnalyzer.cs" /> 92 97 <Compile Include="Analyzers\GQAPSolutionArchiveAnalyzer.cs" /> 93 98 <Compile Include="Evaluators\GQAPNMoveEvaluator.cs" /> … … 98 103 <Compile Include="GQAPAssignmentArchive.cs" /> 99 104 <Compile Include="GQAPSolution.cs" /> 105 <Compile Include="Interfaces\IGQAPManipulator.cs" /> 100 106 <Compile Include="Interfaces\IQualitiesAwareGQAPOperator.cs" /> 101 107 <Compile Include="Interfaces\IAssignmentsAwareGQAPOperator.cs" /> … … 130 136 <Compile Include="Moves\StochasticNMoveSingleMoveGenerator.cs" /> 131 137 <Compile Include="Operators\ApproximateLocalSearch.cs" /> 138 <Compile Include="Operators\MultiGQAPCrossover.cs" /> 132 139 <Compile Include="Operators\GQAPPathRelinking.cs" /> 133 140 <Compile Include="Operators\GQAPStochasticSolutionCreator.cs" /> … … 137 144 <Compile Include="Operators\GQAPSolutionCreator.cs" /> 138 145 <Compile Include="Operators\GreedyRandomizedSolutionCreator.cs" /> 146 <Compile Include="Operators\MultiGQAPManipulator.cs" /> 139 147 <Compile Include="Operators\NMoveShakingOperator.cs" /> 140 148 <Compile Include="Operators\QualitySimilarityMerger.cs" /> -
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/GQAPManipulator.cs
r7419 r7437 31 31 [Item("GQAPManipulator", "A base class for operators that manipulate assignment vectors of the GeneralizedQuadraticAssignment problems.")] 32 32 [StorableClass] 33 public abstract class GQAPManipulator : SingleSuccessorOperator, I AssignmentAwareGQAPOperator, IManipulator, IStochasticOperator {33 public abstract class GQAPManipulator : SingleSuccessorOperator, IGQAPManipulator, IAssignmentAwareGQAPOperator, IStochasticOperator { 34 34 public override bool CanChangeName { 35 35 get { return false; }
Note: See TracChangeset
for help on using the changeset viewer.