public class GlpkSolver extends Solver
| Modifier and Type | Field and Description |
|---|---|
static String |
binary
Path to the binary or lp_solve
|
| Constructor and Description |
|---|
GlpkSolver() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInstalled() |
static void |
setBinary(String binary)
Sets the path to the binary.
|
static void |
setTmpFolder(File path)
Sets the path for the temporary folder.
|
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, setDefaultLinearSolverpublic static String binary
public static boolean isInstalled()
throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Solversolve in class Solverproblem - the actual problemGeneralMathException - if something went wrong.public static void setBinary(String binary)
binary - the path to the binary.public static void setTmpFolder(File path)
path - some path.Copyright © 2018. All rights reserved.