public class BfgsSolver extends Solver
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private static double |
PRECISION |
private java.util.Map<Variable,Term> |
startingPoint
The starting point for the solver.
|
| Constructor and Description |
|---|
BfgsSolver(java.util.Map<Variable,Term> startingPoint) |
| Modifier and Type | Method and Description |
|---|---|
private Matrix |
evaluate(Matrix gradient,
Matrix currentGuess,
java.util.List<Variable> variables) |
static boolean |
isInstalled() |
private double |
nextBestStep(Matrix currentGuess,
Matrix searchDirection,
Matrix gradient,
java.util.List<Variable> variables) |
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, setDefaultLinearSolverprivate org.slf4j.Logger log
private static final double PRECISION
public java.util.Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Solversolve in class Solverproblem - the actual problemGeneralMathException - if something went wrong.private double nextBestStep(Matrix currentGuess, Matrix searchDirection, Matrix gradient, java.util.List<Variable> variables)
private Matrix evaluate(Matrix gradient, Matrix currentGuess, java.util.List<Variable> variables)
public static boolean isInstalled()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException