public class GradientDescent extends Solver
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Logger.
|
private static double |
MAX_STEP_LENGTH
The max step length for the gradient descent.
|
private static double |
MIN_STEP_LENGTH
The min step length for the gradient descent.
|
double |
precision
The precision of the approximation.
|
private java.util.Map<Variable,Term> |
startingPoint
The starting point for the solver.
|
Constructor and Description |
---|
GradientDescent(java.util.Map<Variable,Term> startingPoint)
Creates a new gradient descent 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 org.slf4j.Logger log
public double precision
private static final double MAX_STEP_LENGTH
private static final double MIN_STEP_LENGTH
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