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 |
---|---|
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 |
isDebug() |
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 |
isProgress() |
protected void |
log(String descripttion,
Access2D<?> matrix) |
protected void |
log(String messagePattern,
Object... arguments) |
protected void |
resetIterationsCount() |
protected void |
setState(Optimisation.State aState) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, solve, solve
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 isDebug()
protected final boolean isIterationAllowed()
protected final boolean isProgress()
protected final void resetIterationsCount()
protected final void setState(Optimisation.State aState)
Copyright © 2018 Optimatika. All rights reserved.