public class ReducingOptimizer<I1,O1 extends ScoredItem<V>,I2,O2 extends ScoredItem<V>,V extends java.lang.Comparable<V>> extends AOptimizer<I1,O1,V>
| Constructor and Description |
|---|
ReducingOptimizer(I1 problem,
AlgorithmicProblemReduction<I1,O1,I2,O2> problemTransformer,
IOptimizationAlgorithmFactory<I2,O2,V> baseFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
IOptimizationAlgorithm<I2,O2,V> |
getBaseOptimizer() |
protected org.slf4j.Logger |
getLogger() |
java.lang.String |
getLoggerName() |
AlgorithmicProblemReduction<I1,O1,I2,O2> |
getProblemTransformer() |
protected SolutionCandidateFoundEvent<O1> |
getSolutionEvent(O1 solution) |
AlgorithmEvent |
nextWithException()
Continues the execution of the algorithm until the next event is emitted.
|
void |
runPreCreationHook() |
void |
setLoggerName(java.lang.String name) |
call, getBestSeenSolution, nextSolutionCandidate, nextSolutionCandidateEvent, setBestSeenSolution, updateBestSeenSolutioncollectAllSolutionsactivate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfig, getId, getInput, getNumCPUs, getTimeout, registerListener, setMaxNumThreads, setNumCPUs, setTimeout, setTimeoutpublic ReducingOptimizer(I1 problem, AlgorithmicProblemReduction<I1,O1,I2,O2> problemTransformer, IOptimizationAlgorithmFactory<I2,O2,V> baseFactory)
public final void cancel()
cancel in interface Cancelablecancel in class AAlgorithm<I1,O1 extends ScoredItem<V>>public void runPreCreationHook()
protected SolutionCandidateFoundEvent<O1> getSolutionEvent(O1 solution)
public final AlgorithmEvent nextWithException() throws AlgorithmExecutionCanceledException, java.lang.InterruptedException, AlgorithmTimeoutedException, AlgorithmException
IAlgorithmAlgorithmExecutionCanceledExceptionjava.lang.InterruptedExceptionAlgorithmTimeoutedExceptionAlgorithmExceptionpublic java.lang.String getLoggerName()
getLoggerName in interface ILoggingCustomizablegetLoggerName in class AOptimizer<I1,O1 extends ScoredItem<V>,V extends java.lang.Comparable<V>>public void setLoggerName(java.lang.String name)
setLoggerName in interface ILoggingCustomizablesetLoggerName in class AOptimizer<I1,O1 extends ScoredItem<V>,V extends java.lang.Comparable<V>>protected org.slf4j.Logger getLogger()
public AlgorithmicProblemReduction<I1,O1,I2,O2> getProblemTransformer()
public IOptimizationAlgorithm<I2,O2,V> getBaseOptimizer()