public abstract class GenericSolver extends Object implements Optimisation.Solver
Modifier and Type | Class and Description |
---|---|
static class |
GenericSolver.Builder<B extends GenericSolver.Builder<?,?>,S extends GenericSolver> |
Optimisation.Constraint, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
Modifier and Type | Field and Description |
---|---|
protected static NumberContext |
ACCURACY |
Optimisation.Options |
options |
Modifier | Constructor and Description |
---|---|
protected |
GenericSolver(Optimisation.Options solverOptions) |
Modifier and Type | Method and Description |
---|---|
protected Optimisation.Result |
buildResult() |
protected int |
countIterations() |
protected long |
countTime() |
protected void |
error(String messagePattern,
Object... arguments) |
protected abstract double |
evaluateFunction(Access1D<?> solution) |
protected abstract MatrixStore<Double> |
extractSolution()
Should be able to feed this to
evaluateFunction(Access1D) . |
protected Optimisation.State |
getState() |
protected int |
incrementIterationsCount()
Should be called after a completed iteration.
|
protected boolean |
isIterationAllowed()
Should be called at the start of an iteration (before it actually starts) to check if you should abort
instead.
|
protected boolean |
isLogDebug()
Detailed debug logging
|
protected boolean |
isLogOff()
No logging
|
protected boolean |
isLogProgress()
Cursory progress logging (at least)
|
protected void |
log(String descripttion,
Access2D<?> matrix) |
protected void |
log(String messagePattern,
Object... arguments) |
protected void |
resetIterationsCount() |
protected void |
setState(Optimisation.State state)
As the solver algorithm reaches various states it should be recorded here.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, solve, solve
protected static final NumberContext ACCURACY
public final Optimisation.Options options
protected GenericSolver(Optimisation.Options solverOptions)
protected Optimisation.Result buildResult()
protected final int countIterations()
protected final long countTime()
protected abstract double evaluateFunction(Access1D<?> solution)
protected abstract MatrixStore<Double> extractSolution()
evaluateFunction(Access1D)
.protected final Optimisation.State getState()
protected final int incrementIterationsCount()
protected final boolean isIterationAllowed()
protected final boolean isLogDebug()
protected final boolean isLogOff()
protected final boolean isLogProgress()
protected final void resetIterationsCount()
protected final void setState(Optimisation.State state)
Copyright © 2019 Optimatika. All rights reserved.