|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IOptimization is the central interface and provides access to the optimization core. IOptimization provides several methods to set up the planning problem. Several setter methods allow to add nodes, resources, time and distance matrices and to finally start the optimization run. After the optimization has been started, the optimization run will be performed asynchronously and the optimization progress as well as the result will be returned via callback routines.
| Method Summary | |
void |
addDistanceMatrix(double[][] matrix)
|
void |
addElement(INode node)
add a node to the current optimization. |
void |
addElement(IResource resource)
add a resource to the current optimization. |
void |
addElement(java.util.Properties property)
add a property to the current optimization. |
void |
addTimeMatrix(double[][] matrix)
|
IRoute |
checkAppointment(INode appointment)
ckecks a desired appointment against the current optimization. |
double[][] |
getMatrix()
|
IRoute |
insertAppointment(INode appointment)
inserts a desired appointment into the current optimization. |
void |
onAsynchronousOptimizationResult(IOptimizationResult result)
called after the optimization has been finished according to the defined terminating condition |
void |
onProgress(double progress)
called each time when one percentage of the optimization is done |
void |
onProgress(double progress,
double totaldistance,
double costfunction)
called each time when one percentage of the optimization is done |
void |
startAsynchronousOptimizationRun()
starts a new optimization background process for all added elements, destroys all previous results |
| Method Detail |
public void addElement(java.util.Properties property)
property - a property to define the optimization's behaviourpublic void addElement(IResource resource)
resource - a resource to perform the optimization's schedulepublic void addElement(INode node)
node - a node to be visited within the schedulepublic IRoute checkAppointment(INode appointment)
appointment - a node with a time window
public IRoute insertAppointment(INode appointment)
appointment - a node with a time window
public void startAsynchronousOptimizationRun()
throws JOpt.Licence.LicenceNotFoundException
JOpt.Licence.LicenceNotFoundExceptionpublic void onAsynchronousOptimizationResult(IOptimizationResult result)
result - contains the optimization result or null if an error occuredpublic void onProgress(double progress)
progress -
public void onProgress(double progress,
double totaldistance,
double costfunction)
progress - totaldistance - current distance of all routescostfunction - abstract value of the current costfunctionpublic void addDistanceMatrix(double[][] matrix)
matrix - the distance matrix defining all distances between the nodespublic void addTimeMatrix(double[][] matrix)
matrix - the time matrix defining all travelling times between the nodespublic double[][] getMatrix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||