|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.graph.vrp.VRPBase | +--drasys.or.graph.vrp.ImproveBase | +--drasys.or.graph.vrp.ImproveWithTSP
An implementations of a VRP improvement algorithm that uses a TSP subalgorithm to improve the vertex ordering of each tour in the solution.
Fields inherited from class drasys.or.graph.vrp.VRPBase |
_closed,
_depotKey,
_edgeKey,
_graph,
_maxCost,
_maxLoad,
_out,
_properties,
_vehicleCost |
Constructor Summary | |
ImproveWithTSP(ConstructI construct)
|
|
ImproveWithTSP(ImproveI improve)
|
Method Summary | |
double |
getCost()
Returns the total cost of the solution tours. |
double[] |
getCosts()
Returns the cost of each tour in the solution. |
double[] |
getLoads()
Returns the load for each tour in the solution. |
java.util.Vector[] |
getTours()
Returns the solution tours generated by the algorithm. |
double |
improveClosedTours(java.util.Vector[] tours)
Improve a solution with closed tours that begin and end at the depot vertex. |
double |
improveInboundTours(java.util.Vector[] tours)
Improve a solution with open tours that begin at arbitrary vertices and end at the depot vertex. |
double |
improveOutboundTours(java.util.Vector[] tours)
Improve a solution with open tours that begin at the depot vertex and end at arbitrary vertices. |
void |
setEdgeKey(java.lang.Object edgeKey)
Sets the edge key for the improvement TSP algorithm. |
void |
setGraph(GraphI graph)
Sets the graph for the improvement TSP algorithm. |
void |
setProperties(PropertiesI properties)
Sets the edge properties object for the improvement TSP algorithm. |
Methods inherited from class drasys.or.graph.vrp.VRPBase |
copyTours,
getCost,
getGraph,
getLoad,
getLoads,
setCapacityConstraint,
setCostConstraint,
setVehicleCost |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ImproveWithTSP(ConstructI construct)
public ImproveWithTSP(ImproveI improve)
Method Detail |
public double improveOutboundTours(java.util.Vector[] tours) throws SolutionNotFoundException
public double improveInboundTours(java.util.Vector[] tours) throws SolutionNotFoundException
public double improveClosedTours(java.util.Vector[] tours) throws SolutionNotFoundException
public void setGraph(GraphI graph)
public void setEdgeKey(java.lang.Object edgeKey)
public void setProperties(PropertiesI properties)
public java.util.Vector[] getTours() throws SolutionNotFoundException
public double getCost() throws SolutionNotFoundException
public double[] getCosts() throws SolutionNotFoundException
public double[] getLoads() throws SolutionNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |