public class LagrangeSolver extends Solver
| Constructor and Description |
|---|
LagrangeSolver(Map<Variable,Term> startingPoint)
Creates a new Lagrange solver for the given
optimization problem
|
LagrangeSolver(Set<Map<Variable,Term>> startingPoints)
Creates a new Lagrange solver for the given
optimization problem
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInstalled() |
void |
setStartingPointsLMult(Map<Statement,Double> startingPointsLMult) |
Map<Variable,Term> |
solve(ConstraintSatisfactionProblem prob)
Computes a solution to the given constraint satisfaction or optimization problem, i.e.
|
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolverpublic LagrangeSolver(Map<Variable,Term> startingPoint)
startingPoint - The starting point for finding the optimum.public void setStartingPointsLMult(Map<Statement,Double> startingPointsLMult)
public Map<Variable,Term> solve(ConstraintSatisfactionProblem prob) throws GeneralMathException
Solversolve in class Solverprob - the actual problemGeneralMathException - if something went wrong.public static boolean isInstalled()
throws UnsupportedOperationException
UnsupportedOperationExceptionCopyright © 2018. All rights reserved.