public class OpenOptSolver extends Solver
| Modifier and Type | Field and Description | 
|---|---|
double | 
contol  | 
double | 
ftol  | 
double | 
gtol  | 
private java.util.Map<java.lang.Integer,Variable> | 
idx2newVars
A map mapping indices to new variables. 
 | 
boolean | 
ignoreNotFeasibleError  | 
private org.slf4j.Logger | 
log
Logger. 
 | 
double | 
maxFunEvals  | 
double | 
maxIter  | 
private java.util.Map<Variable,Variable> | 
newVars2oldVars
A map mapping old variables to new variables. 
 | 
private java.util.Map<Variable,Variable> | 
oldVars2newVars
A map mapping old variables to new variables. 
 | 
java.lang.String | 
solver  | 
private java.util.Map<Variable,Term> | 
startingPoint
A starting point for the optimization. 
 | 
double | 
xtol  | 
| Constructor and Description | 
|---|
OpenOptSolver()
Creates a new solver. 
 | 
OpenOptSolver(java.util.Map<Variable,Term> startingPoint)
Creates a new solver for the given problem. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getOpenOptCode(OptimizationProblem problem)
Builds the OpenOpt code for the given problem which can be interpreted
 by a python. 
 | 
static boolean | 
isInstalled()  | 
protected java.util.Map<Variable,Term> | 
parseOutput(java.lang.String output)
This method parses the output data of an OpenOpt run 
 | 
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
public double contol
public double ftol
public double gtol
public double xtol
public double maxIter
public double maxFunEvals
public java.lang.String solver
public boolean ignoreNotFeasibleError
private java.util.Map<Variable,Term> startingPoint
private java.util.Map<Variable,Variable> oldVars2newVars
private java.util.Map<Variable,Variable> newVars2oldVars
private java.util.Map<java.lang.Integer,Variable> idx2newVars
public java.util.Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Solversolve in class Solverproblem - the actual problemGeneralMathException - if something went wrong.public java.lang.String getOpenOptCode(OptimizationProblem problem)
protected java.util.Map<Variable,Term> parseOutput(java.lang.String output)
output - a string.public static boolean isInstalled()
                           throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException