public class ApacheCommonsNonLinearConjugateGradientOptimizer extends Solver
Modifier and Type | Field and Description |
---|---|
private int |
maxEval
The maximum number of evaluations.
|
private double |
precision
The precision
|
Constructor and Description |
---|
ApacheCommonsNonLinearConjugateGradientOptimizer(int maxEval,
double precision)
Creates a new solver.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isInstalled() |
java.util.Map<Variable,Term> |
solve(ConstraintSatisfactionProblem problem)
Computes a solution to the given constraint satisfaction or optimization problem, i.e.
|
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
private int maxEval
private double precision
public ApacheCommonsNonLinearConjugateGradientOptimizer(int maxEval, double precision)
maxEval
- the maximum number of evaluations.precision
- the precision.public java.util.Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Solver
solve
in class Solver
problem
- the actual problemGeneralMathException
- if something went wrong.public static boolean isInstalled() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException