|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
JOpt.SDK.Implementation.Optimization
| Nested Class Summary | |
class |
Optimization.WorkerThread
|
| Field Summary | |
java.util.HashMap |
serviceTimePointer
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Optimization()
|
|
| 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(IRoute route)
add a route to the current optimization. |
void |
addElement(java.util.Properties properties)
add a property to the current optimization. |
void |
addTimeMatrix(double[][] matrix)
|
IRoute |
checkAppointment(INode appointment)
NOT YET INCLUDED IN JOPT - MIGHT BE INCLUDED IN THE LONG TERM ckecks a desired appointment against the current optimization. |
java.lang.String |
getLicenceKey()
|
double[][] |
getMatrix()
|
java.util.Properties |
getProperties()
|
double[][] |
getTimeMatrix()
|
void |
init()
|
IRoute |
insertAppointment(INode appointment)
NOT YET INCLUDED IN JOPT - MIGHT BE INCLUDED IN THE LONG TERM 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 |
onError(int errorcode,
java.lang.String message)
called in case an error occurs |
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 |
onProgress(double progress,
double totaldistance1,
double costfunction1,
double totaldistance2,
double costfunction2)
|
void |
onProgress(double progress,
double totaldistance,
double costfunction,
int optimizationStage,
java.lang.String optimizationMode)
called each time when one percentage of the optimization is done |
void |
onProgress(double progress,
double totaldistance,
double costfunction,
int optimizationStage,
java.lang.String optimizationMode,
IViolationSummary violationSummary)
called each time when one percentage of the optimization is done |
void |
run()
|
void |
setLicenceKey(java.lang.String licenceKey)
|
JOpt.SDK.Core.Individuum |
single2opt(JOpt.SDK.Core.Individuum ind)
|
void |
startAsynchronousOptimizationRun()
starts a new optimization background process for all added elements, destroys all previous results |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.util.HashMap serviceTimePointer
| Constructor Detail |
public Optimization()
| Method Detail |
public void addElement(java.util.Properties properties)
IOptimization
addElement in interface IOptimizationproperties - a property to define the optimization's behaviourpublic void addElement(IResource resource)
IOptimization
addElement in interface IOptimizationresource - a resource to perform the optimization's schedulepublic void addElement(INode node)
IOptimization
addElement in interface IOptimizationnode - a node to be visited within the schedulepublic void addElement(IRoute route)
IOptimization
addElement in interface IOptimizationpublic IRoute checkAppointment(INode appointment)
IOptimization
checkAppointment in interface IOptimizationappointment - a node with a time window
public IRoute insertAppointment(INode appointment)
IOptimization
insertAppointment in interface IOptimizationappointment - a node with a time window
public void startAsynchronousOptimizationRun()
throws JOpt.Licence.LicenceNotFoundException
IOptimization
startAsynchronousOptimizationRun in interface IOptimizationJOpt.Licence.LicenceNotFoundExceptionpublic void run()
run in interface java.lang.Runnablepublic void onAsynchronousOptimizationResult(IOptimizationResult result)
IOptimization
onAsynchronousOptimizationResult in interface IOptimizationresult - contains the optimization result or null if an error occuredpublic void onProgress(double progress)
IOptimization
onProgress in interface IOptimizationprogress -
public void onProgress(double progress,
double totaldistance,
double costfunction)
IOptimization
onProgress in interface IOptimizationprogress - totaldistance - current distance of all routescostfunction - abstract value of the current costfunction
public void onProgress(double progress,
double totaldistance,
double costfunction,
int optimizationStage,
java.lang.String optimizationMode)
IOptimization
onProgress in interface IOptimizationprogress - totaldistance - current distance of all routescostfunction - abstract value of the current costfunctionoptimizationStage - 1 = construction, 2 = improvementoptimizationMode - assisted singledepot, assisted mutlidepot, unassisted
public void onProgress(double progress,
double totaldistance1,
double costfunction1,
double totaldistance2,
double costfunction2)
public void onProgress(double progress,
double totaldistance,
double costfunction,
int optimizationStage,
java.lang.String optimizationMode,
IViolationSummary violationSummary)
IOptimization
onProgress in interface IOptimizationprogress - totaldistance - current distance of all routescostfunction - abstract value of the current costfunctionoptimizationStage - 1 = construction, 2 = improvementoptimizationMode - assisted singledepot, assisted multidepot, strict assisted singledepot,strict assisted multidepot, unassistedviolationSummary - a summary of current violations
public void onError(int errorcode,
java.lang.String message)
IOptimization
onError in interface IOptimizationerrorcode - message - public void addDistanceMatrix(double[][] matrix)
addDistanceMatrix in interface IOptimizationmatrix - the distance matrix defining all distances between the nodespublic double[][] getMatrix()
getMatrix in interface IOptimizationpublic void addTimeMatrix(double[][] matrix)
addTimeMatrix in interface IOptimizationmatrix - the time matrix defining all travelling times between the nodespublic double[][] getTimeMatrix()
public void setLicenceKey(java.lang.String licenceKey)
public java.lang.String getLicenceKey()
public java.util.Properties getProperties()
getProperties in interface IOptimizationpublic void init()
public JOpt.SDK.Core.Individuum single2opt(JOpt.SDK.Core.Individuum ind)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||