public class OpenOptSolver extends Solver
| Modifier and Type | Field and Description |
|---|---|
double |
contol |
double |
ftol |
double |
gtol |
boolean |
ignoreNotFeasibleError |
double |
maxFunEvals |
double |
maxIter |
String |
solver |
double |
xtol |
| Constructor and Description |
|---|
OpenOptSolver()
Creates a new solver.
|
OpenOptSolver(Map<Variable,Term> startingPoint)
Creates a new solver for the given problem.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOpenOptCode(OptimizationProblem problem)
Builds the OpenOpt code for the given problem which can be interpreted
by a python.
|
static boolean |
isInstalled() |
protected Map<Variable,Term> |
parseOutput(String output)
This method parses the output data of an OpenOpt run
|
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, setDefaultLinearSolverpublic double contol
public double ftol
public double gtol
public double xtol
public double maxIter
public double maxFunEvals
public String solver
public boolean ignoreNotFeasibleError
public Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Solversolve in class Solverproblem - the actual problemGeneralMathException - if something went wrong.public String getOpenOptCode(OptimizationProblem problem)
protected Map<Variable,Term> parseOutput(String output)
output - a string.public static boolean isInstalled()
throws UnsupportedOperationException
UnsupportedOperationExceptionCopyright © 2016. All rights reserved.