Package net.sf.tweety.math.opt.solver
Class LpSolve
- java.lang.Object
-
- net.sf.tweety.math.opt.solver.Solver
-
- net.sf.tweety.math.opt.solver.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. it uses LpSolve Version 5.5.2.5 (https://sourceforge.net/projects/lpsolve/)- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description LpSolve()
-
Method Summary
Modifier and Type Method Description static boolean
isInstalled()
static void
setBinary(java.lang.String binary)
Sets the path to the binary.static void
setTmpFolder(java.io.File path)
Sets the path for the temporary folder.java.util.Map<Variable,Term>
solve(ConstraintSatisfactionProblem problem)
Computes a solution to the given constraint satisfaction or optimization problem, i.e.-
Methods inherited from class net.sf.tweety.math.opt.solver.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
-
-
-
-
Method Detail
-
isInstalled
public static boolean isInstalled() throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
solve
public java.util.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.
-
setBinary
public static void setBinary(java.lang.String binary)
Sets the path to the binary.- Parameters:
binary
- the path to the binary.
-
setTmpFolder
public static void setTmpFolder(java.io.File path)
Sets the path for the temporary folder.- Parameters:
path
- some path.
-
-