Changeset 14628 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.LocationRouting/3.3/LrpOrchestratorNode2.cs
- Timestamp:
- 01/31/17 16:54:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.LocationRouting/3.3/LrpOrchestratorNode2.cs
r14621 r14628 43 43 public LrpOrchestratorNode2() : this("LrpOrchestratorNode2") { } 44 44 public LrpOrchestratorNode2(string name) : base(name) { 45 MetaSolverOrchestrationPort = CreateOrchestrationPort< VariegationProblem>(MetaSolverName);46 MetaSolverEvaluationPort = CreateEvaluationPort<RealVector>(MetaSolverName , "RealVector", "Quality");47 FlpSolverOrchestrationPort = CreateOrchestrationPort<FacilityLocationProblem>(FlpSolverName );48 VrpSolverOrchestrationPort = CreateOrchestrationPort<VehicleRoutingProblem>(VrpSolverName );45 MetaSolverOrchestrationPort = CreateOrchestrationPort<MinimizationVariegationProblem<RealVectorEncoding>>(MetaSolverName + OrchestrationPortNameSuffix); 46 MetaSolverEvaluationPort = CreateEvaluationPort<RealVector>(MetaSolverName + EvaluationPortNameSuffix, "RealVector", "Quality"); 47 FlpSolverOrchestrationPort = CreateOrchestrationPort<FacilityLocationProblem>(FlpSolverName + OrchestrationPortNameSuffix); 48 VrpSolverOrchestrationPort = CreateOrchestrationPort<VehicleRoutingProblem>(VrpSolverName + OrchestrationPortNameSuffix); 49 49 } 50 50 … … 60 60 if (clearRuns) msgFlags |= OrchestrationMessage.ClearRuns; 61 61 metaMsg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(msgFlags); 62 var problem = new VariegationProblem();62 var problem = new MinimizationVariegationProblem<RealVectorEncoding>(); 63 63 problem.Encoding.Length = nrOfDepots * 2; 64 64 problem.Encoding.Bounds = new DoubleMatrix(new[,] { { -1.0, 1.0 } }); … … 85 85 cts.Token.ThrowIfCancellationRequested(); 86 86 87 var flpResults = (ResultCollection)flpMsg["Results"]; 87 88 var bestFlpSolution = (IntegerVector)flpResults["Best Solution"].Value; 88 89 var flpSolution = FlpParameter.Value.GetSolution(bestFlpSolution); … … 109 110 cts.Token.ThrowIfCancellationRequested(); 110 111 112 var vrpResults = (ResultCollection)vrpMsg["Results"]; 111 113 var bestVrpSolution = (VRPSolution)vrpResults["Best valid VRP Solution"].Value.Clone(); 112 114 vrpSolutions.Add(new Result("Depot " + depot.Key, bestVrpSolution));
Note: See TracChangeset
for help on using the changeset viewer.