Changeset 14653 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpOrchestratorNode1.cs
- Timestamp:
- 02/07/17 21:54:23 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpOrchestratorNode1.cs
r14628 r14653 90 90 var loot = new KnapsackSolution(bestKspSolution, bestKspQuality, kspCapacity, kspWeights, kspValues); 91 91 92 var availability = TtpUtils.GetAvailability(AvailabilityParameter.Value.ToArray()); 93 92 94 var tspMsg = TspSolverOrchestrationPort.PrepareMessage(); 93 95 tspMsg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Prepare | OrchestrationMessage.ClearRuns | OrchestrationMessage.Start); … … 96 98 Ksp = (BinaryKnapsackProblem)KspParameter.Value.Clone(), 97 99 FixedKspSolution = bestKspSolution, 98 Availability = AvailabilityParameter.Value.ToArray(),100 Availability = availability, 99 101 RentingRatio = RentingRatioParameter.Value.Value, 100 102 MinSpeed = MinSpeedParameter.Value.Value, 101 103 MaxSpeed = MaxSpeedParameter.Value.Value, 102 DistanceType = distanceType103 104 }; 104 105 tpp.Encoding.Length = TspParameter.Value.Coordinates.Rows; … … 114 115 #region Analyze 115 116 double objectiveValue = TtpUtils.Evaluate(TspParameter.Value, tour.Permutation.ToArray(), KspParameter.Value, loot.BinaryVector.ToArray(), 116 AvailabilityParameter.Value.ToArray(), RentingRatioParameter.Value.Value, MinSpeedParameter.Value.Value, MaxSpeedParameter.Value.Value, distanceType);117 availability, RentingRatioParameter.Value.Value, MinSpeedParameter.Value.Value, MaxSpeedParameter.Value.Value); 117 118 ((DoubleValue)message["Quality"]).Value = objectiveValue; 118 119
Note: See TracChangeset
for help on using the changeset viewer.