public class LpSolveExtension
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FEATURE_BASISOPT |
static int |
FEATURE_BENCHMARK |
Constructor and Description |
---|
LpSolveExtension() |
Modifier and Type | Method and Description |
---|---|
static void |
clearStats() |
static int |
getFeatures()
Gets the enabled compile features in the native build.
|
static long |
getHandle(lpsolve.LpSolve lp)
Returns the handle pointing to the lprec structure for a given LpSolve object.
|
static long |
getInfeasibles() |
static long |
getNumFailures() |
static long |
getNumRelaxedUsed() |
static long |
getNumRHSCopied() |
static long |
getNumSolveCalls() |
static long |
getTotalEntireSolve() |
static long |
getTotalRelaxed() |
static long |
getTotalRHS() |
static int |
getVersion()
Gets the LpSolveExtension native library version.
|
static int |
solveForRhs(long handle,
double[] rhs)
Solves the LP identified by handle for the given right hand side rhs.
|
static int |
solveForRhs(long handle,
double[] rhs,
double[] vars)
Solves the LP identified by handle for the given right hand side rhs,
and places the resulting variables in vars if successful.
|
public static final int FEATURE_BENCHMARK
public static final int FEATURE_BASISOPT
public static int getVersion()
public static int getFeatures()
public static int solveForRhs(long handle, double[] rhs, double[] vars)
handle
- The handle pointing to the lprec structure.rhs
- The array representing the right hand side values.vars
- The array in which the variables will be written.public static int solveForRhs(long handle, double[] rhs)
handle
- The handle pointing to the lprec structure.rhs
- The array representing the right hand side values.public static long getHandle(lpsolve.LpSolve lp)
lp
- The LpSolve object.public static long getNumSolveCalls()
public static long getNumRelaxedUsed()
public static long getNumFailures()
public static long getNumRHSCopied()
public static long getInfeasibles()
public static long getTotalRHS()
public static long getTotalRelaxed()
public static long getTotalEntireSolve()
public static void clearStats()