Class LpSolve


  • public class LpSolve
    extends Solver
    This class implements a wrapper to the lpsolve binary for mixed integer linear programming. See http://lpsolve.sourceforge.net.
    Author:
    Matthias Thimm
    • Constructor Detail

      • LpSolve

        public LpSolve()
    • Method Detail

      • solve

        public Map<Variable,​Term> solve​(ConstraintSatisfactionProblem problem)
        Description copied from class: Solver
        Computes a solution to the given constraint satisfaction or optimization problem, i.e. a mapping from variables of the problem to terms.
        Specified by:
        solve in class Solver
        Parameters:
        problem - the actual problem
        Returns:
        a mapping from variables of the problem to terms.
      • setBinary

        public static void setBinary​(String binary)
        Sets the path to the binary.
        Parameters:
        binary - the path to the binary.
      • setTmpFolder

        public static void setTmpFolder​(File path)
        Sets the path for the temporary folder.
        Parameters:
        path - some path.