public class OpenOptSolver extends Solver
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreNotFeasibleError |
| 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 |
|---|---|
double |
getContol() |
double |
getFtol() |
double |
getGtol() |
double |
getMaxFunEvals() |
double |
getMaxIter() |
String |
getOpenOptCode(OptimizationProblem problem)
Builds the OpenOpt code for the given problem which can be interpreted
by a python.
|
String |
getSolver() |
double |
getXtol() |
boolean |
isIgnoreNotFeasibleError() |
static boolean |
isInstalled() |
protected Map<Variable,Term> |
parseOutput(String output)
This method parses the output data of an OpenOpt run
|
void |
setContol(double contol) |
void |
setFtol(double ftol) |
void |
setGtol(double gtol) |
void |
setIgnoreNotFeasibleError(boolean ignoreNotFeasibleError) |
void |
setMaxFunEvals(double maxFunEvals) |
void |
setMaxIter(double maxIter) |
void |
setSolver(String solver) |
void |
setXtol(double xtol) |
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 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
UnsupportedOperationExceptionpublic double getContol()
public void setContol(double contol)
public double getFtol()
public void setFtol(double ftol)
public double getGtol()
public void setGtol(double gtol)
public double getXtol()
public void setXtol(double xtol)
public double getMaxIter()
public void setMaxIter(double maxIter)
public double getMaxFunEvals()
public void setMaxFunEvals(double maxFunEvals)
public String getSolver()
public void setSolver(String solver)
public boolean isIgnoreNotFeasibleError()
public void setIgnoreNotFeasibleError(boolean ignoreNotFeasibleError)
Copyright © 2018. All rights reserved.