Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Solution" /> class.
 /// </summary>
 /// <param name="Costs">overall costs of solution.</param>
 /// <param name="Distance">overall travel distance in meters.</param>
 /// <param name="Time">overall transport time in seconds.</param>
 /// <param name="TransportTime">overall transport time in seconds.</param>
 /// <param name="MaxOperationTime">operation time of the longest route in seconds.</param>
 /// <param name="WaitingTime">total waiting time in seconds.</param>
 /// <param name="ServiceDuration">total service time in seconds.</param>
 /// <param name="PreparationTime">total preparation time in seconds.</param>
 /// <param name="CompletionTime">total completion time in seconds.</param>
 /// <param name="NoVehicles">number of employed vehicles.</param>
 /// <param name="NoUnassigned">number of jobs that could not be assigned to final solution.</param>
 /// <param name="Routes">An array of routes.</param>
 /// <param name="Unassigned">Unassigned.</param>
 public Solution(int?Costs = default(int?), int?Distance = default(int?), long?Time = default(long?), long?TransportTime = default(long?), long?MaxOperationTime = default(long?), long?WaitingTime = default(long?), long?ServiceDuration = default(long?), long?PreparationTime = default(long?), long?CompletionTime = default(long?), int?NoVehicles = default(int?), int?NoUnassigned = default(int?), List <Route> Routes = default(List <Route>), SolutionUnassigned Unassigned = default(SolutionUnassigned))
 {
     this.Costs            = Costs;
     this.Distance         = Distance;
     this.Time             = Time;
     this.TransportTime    = TransportTime;
     this.MaxOperationTime = MaxOperationTime;
     this.WaitingTime      = WaitingTime;
     this.ServiceDuration  = ServiceDuration;
     this.PreparationTime  = PreparationTime;
     this.CompletionTime   = CompletionTime;
     this.NoVehicles       = NoVehicles;
     this.NoUnassigned     = NoUnassigned;
     this.Routes           = Routes;
     this.Unassigned       = Unassigned;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Solution" /> class.
 /// </summary>
 /// <param name="Costs">overall costs of solution.</param>
 /// <param name="Distance">overall travel distance in meters.</param>
 /// <param name="Time">overall transport time in ms.</param>
 /// <param name="TransportTime">overall transport time in ms.</param>
 /// <param name="MaxOperationTime">operation time of the longest route in ms.</param>
 /// <param name="WaitingTime">total waiting time in ms.</param>
 /// <param name="NoVehicles">number of employed vehicles.</param>
 /// <param name="NoUnassigned">number of jobs that could not be assigned to final solution.</param>
 /// <param name="Routes">An array of routes.</param>
 /// <param name="Unassigned">Unassigned.</param>
 public Solution(int?Costs = null, int?Distance = null, long?Time = null, long?TransportTime = null, long?MaxOperationTime = null, long?WaitingTime = null, int?NoVehicles = null, int?NoUnassigned = null, List <Route> Routes = null, SolutionUnassigned Unassigned = null)
 {
     this.Costs            = Costs;
     this.Distance         = Distance;
     this.Time             = Time;
     this.TransportTime    = TransportTime;
     this.MaxOperationTime = MaxOperationTime;
     this.WaitingTime      = WaitingTime;
     this.NoVehicles       = NoVehicles;
     this.NoUnassigned     = NoUnassigned;
     this.Routes           = Routes;
     this.Unassigned       = Unassigned;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Solution" /> class.
 /// </summary>
 /// <param name="costs">costs.</param>
 /// <param name="distance">Overall distance travelled in meter, i.e. the sum of each route&#x27;s transport distance.</param>
 /// <param name="time">Use &#x60;transport_time&#x60; instead..</param>
 /// <param name="transportTime">Overall time travelled in seconds, i.e. the sum of each route&#x27;s transport time..</param>
 /// <param name="maxOperationTime">Operation time of longest route in seconds..</param>
 /// <param name="waitingTime">Overall waiting time in seconds..</param>
 /// <param name="serviceDuration">Overall service time in seconds..</param>
 /// <param name="preparationTime">Overall preparation time in seconds..</param>
 /// <param name="completionTime">Overall completion time in seconds, i.e. the sum of each routes/drivers operation time..</param>
 /// <param name="noVehicles">Number of employed vehicles..</param>
 /// <param name="noUnassigned">Number of jobs that could not be assigned to final solution..</param>
 /// <param name="routes">An array of routes.</param>
 /// <param name="unassigned">unassigned.</param>
 public Solution(int?costs = default(int?), int?distance = default(int?), long?time = default(long?), long?transportTime = default(long?), long?maxOperationTime = default(long?), long?waitingTime = default(long?), long?serviceDuration = default(long?), long?preparationTime = default(long?), long?completionTime = default(long?), int?noVehicles = default(int?), int?noUnassigned = default(int?), List <Route> routes = default(List <Route>), SolutionUnassigned unassigned = default(SolutionUnassigned))
 {
     this.Costs            = costs;
     this.Distance         = distance;
     this.Time             = time;
     this.TransportTime    = transportTime;
     this.MaxOperationTime = maxOperationTime;
     this.WaitingTime      = waitingTime;
     this.ServiceDuration  = serviceDuration;
     this.PreparationTime  = preparationTime;
     this.CompletionTime   = completionTime;
     this.NoVehicles       = noVehicles;
     this.NoUnassigned     = noUnassigned;
     this.Routes           = routes;
     this.Unassigned       = unassigned;
 }