Package net.sf.tweety.math.opt
Class OpenOptRootFinder
- java.lang.Object
-
- net.sf.tweety.math.opt.RootFinder
-
- net.sf.tweety.math.opt.OptimizationRootFinder
-
- net.sf.tweety.math.opt.OpenOptRootFinder
-
public class OpenOptRootFinder extends OptimizationRootFinder
A wrapper for the open opt library.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description OpenOptRootFinder(java.util.List<Term> functions, java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given (multi-dimensional) functionOpenOptRootFinder(Term function, java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given function
-
Method Summary
Modifier and Type Method Description double
getContol()
double
getFtol()
double
getGtol()
java.lang.String
getOpenOptCode()
Builds the OpenOpt code for the given problem which can be interpreted by a python.double
getXtol()
java.util.Map<Variable,Term>
randomRoot()
Determines the values for the variables appearing in the function such the function evaluates to zero.void
setContol(double contol)
void
setFtol(double ftol)
void
setGtol(double gtol)
void
setXtol(double xtol)
-
Methods inherited from class net.sf.tweety.math.opt.OptimizationRootFinder
buildOptimizationProblem
-
Methods inherited from class net.sf.tweety.math.opt.RootFinder
getFunctions, getStartingPoint, setStartingPoint
-
-
-
-
Method Detail
-
getOpenOptCode
public java.lang.String getOpenOptCode()
Builds the OpenOpt code for the given problem which can be interpreted by a python.- Returns:
- the OpenOpt code for the given problem which can be interpreted by a python.
-
randomRoot
public java.util.Map<Variable,Term> randomRoot() throws GeneralMathException
Description copied from class:RootFinder
Determines the values for the variables appearing in the function such the function evaluates to zero.- Specified by:
randomRoot
in classOptimizationRootFinder
- Returns:
- a map from variables to terms such that "function" evaluates to zero.
- Throws:
GeneralMathException
- if something went wrong.
-
getContol
public double getContol()
-
setContol
public void setContol(double contol)
-
getFtol
public double getFtol()
-
setFtol
public void setFtol(double ftol)
-
getGtol
public double getGtol()
-
setGtol
public void setGtol(double gtol)
-
getXtol
public double getXtol()
-
setXtol
public void setXtol(double xtol)
-
-