Class OpenOptSolver

  • Direct Known Subclasses:
    OpenOptWebSolver

    public class OpenOptSolver
    extends Solver
    This class implements a wrapper for the OpenOpt optimization library.
    Author:
    Matthias Thimm
    • Field Detail

      • ignoreNotFeasibleError

        protected boolean ignoreNotFeasibleError
    • Constructor Detail

      • OpenOptSolver

        public OpenOptSolver()
        Creates a new solver.
      • OpenOptSolver

        public OpenOptSolver​(Map<Variable,​Term> startingPoint)
        Creates a new solver for the given problem.
        Parameters:
        startingPoint - a starting point.
    • Method Detail

      • getOpenOptCode

        public String getOpenOptCode​(OptimizationProblem problem)
        Builds the OpenOpt code for the given problem which can be interpreted by a python.
        Parameters:
        problem - the optimisation problem
        Returns:
        the python code for the given problem
      • parseOutput

        protected Map<Variable,​Term> parseOutput​(String output)
        This method parses the output data of an OpenOpt run
        Parameters:
        output - a string.
        Returns:
        a map from variable to terms
      • 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)
      • getMaxIter

        public double getMaxIter()
      • setMaxIter

        public void setMaxIter​(double maxIter)
      • getMaxFunEvals

        public double getMaxFunEvals()
      • setMaxFunEvals

        public void setMaxFunEvals​(double maxFunEvals)
      • getSolver

        public String getSolver()
      • setSolver

        public void setSolver​(String solver)
      • isIgnoreNotFeasibleError

        public boolean isIgnoreNotFeasibleError()
      • setIgnoreNotFeasibleError

        public void setIgnoreNotFeasibleError​(boolean ignoreNotFeasibleError)