interface methods for specific LP solvers
This file specifies a generic LP solver interface used by SCIP to create, modify, and solve linear programs of the form
min/max obj * x lhs <= A * x <= rhs lb <= x <= ub
and query information about the solution. Although it includes a few SCIP header files, e.g., because it uses SCIP's return codes, it can be used independently of any SCIP instance.
The basis status for (column) variables are as follows:
The basis status for (row) slack variables are:
If the solvers use their status differently, the have to be corrected.
In the methods accessing information about the (inverse of the) basis matrix, the interface assumes the following column-oriented format: slack variables of rows have coefficient +1 and the basis matrix is a regular m times m submatrix of (A,I), where m is the number of rows and I is the identity matrix. This means that if, internally, the LP solver uses coefficients -1 for some of the slack variables, then rows associated with slacks variables whose coefficient is -1 should be negated in order to return the result in terms of the LP interface definition.
The creation of a new LP should always be done in the following ways: Either one can use SCIPlpiLoadColLP() or one first adds empty columns or rows. Then the matrix entries can be added by adding columns and rows, respectively. It is an error, if matrix entries are added for rows or columns that have not been added before.
Definition in file lpi.h.
#include "scip/def.h"
#include "blockmemshell/memory.h"
#include "scip/type_retcode.h"
#include "lpi/type_lpi.h"
Go to the source code of this file.
const char* SCIPlpiGetSolverName | ( | void | ) |
gets name and version of LP solver
Definition at line 432 of file lpi_clp.cpp.
References CLP_VERSION, CPX_SUBVERSION, cpxname, grbname, LPINAME, mskname, SCIP_MAXSTRLEN, SCIP_Real, SCIPdebugMessage, SCIPlpiGetSolverDesc(), SOPLEX_SUBVERSION, spxname, and xprsname.
Referenced by lpFlushChgCols(), lpFlushChgRows(), SCIPcreate(), SCIPlpCreate(), SCIPlpMarkFlushed(), and SCIPprintVersion().
const char* SCIPlpiGetSolverDesc | ( | void | ) |
gets description of LP solver (developer, webpage, ...)
Definition at line 441 of file lpi_clp.cpp.
References SCIPlpiGetSolverPointer(), and spxdesc.
Referenced by SCIPcreate(), and SCIPlpiGetSolverName().
void* SCIPlpiGetSolverPointer | ( | SCIP_LPI * | lpi | ) |
gets pointer for LP solver - use only with great care
The behavior of this function depends on the solver and its use is therefore only recommended if you really know what you are doing. In general, it returns a pointer to the LP solver object.
gets pointer for LP solver - use only with great care
gets pointer for LP solver - use only with great care
Here we return the pointer to the LP environment.
gets pointer for LP solver - use only with great care
Here we return the pointer to the model.
lpi | pointer to an LP interface structure |
Definition at line 449 of file lpi_clp.cpp.
References SCIP_LPi::clp, SCIP_LPi::cpxlp, SCIP_LPi::grbmodel, NULL, SCIP_LPi::prob, SCIPlpiSetIntegralityInformation(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiGetSolverDesc().
SCIP_RETCODE SCIPlpiSetIntegralityInformation | ( | SCIP_LPI * | lpi, |
int | ncols, | ||
int * | intInfo | ||
) |
pass integrality information about variables to the solver
pass integrality information to LP solver
lpi | pointer to an LP interface structure |
ncols | length of integrality array |
intInfo | integrality array (0: continuous, 1: integer) |
Definition at line 457 of file lpi_clp.cpp.
References NULL, SCIP_LPERROR, SCIP_OKAY, SCIPerrorMessage, SCIPlpiCreate(), and SCIP_LPi::spx.
Referenced by lpCopyIntegrality(), and SCIPlpiGetSolverPointer().
SCIP_RETCODE SCIPlpiCreate | ( | SCIP_LPI ** | lpi, |
SCIP_MESSAGEHDLR * | messagehdlr, | ||
const char * | name, | ||
SCIP_OBJSEN | objsen | ||
) |
creates an LP problem object
lpi | pointer to an LP interface structure |
messagehdlr | message handler to use for printing messages, or NULL |
name | problem name |
objsen | objective sense |
Definition at line 480 of file lpi_clp.cpp.
References BMSallocMemory, BMSallocMemoryArray, BMSallocMemoryCPP, CHECK_ZERO, checkRangeInfo(), copyParameterValues(), DEGEN_LEVEL, FALSE, getParameterValues(), grbenv, invalidateSolution(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, nextlpid, NULL, numlp, printstr(), SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_LPERROR, SCIP_LPPAR_PRICING, SCIP_OKAY, SCIP_PRICING_LPIDEFAULT, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiChgObjsen(), SCIPlpiFree(), SCIPlpiInfinity(), SCIPlpiSetIntpar(), SCIPmessagePrintWarning(), SENSE2MOSEK, SETBACK_LIMIT, SOPLEX_TRY, SOPLEX_VERBLEVEL, TRUE, and warnedbeta.
Referenced by addConcaveEstimatorMultivariate(), createLP(), initAlternativeLP(), SCIP_DECL_PARAMCHGD(), SCIPlpComputeRelIntPoint(), SCIPlpCreate(), and SCIPlpiSetIntegralityInformation().
SCIP_RETCODE SCIPlpiFree | ( | SCIP_LPI ** | lpi | ) |
deletes an LP problem object
lpi | pointer to an LP interface structure |
Definition at line 549 of file lpi_clp.cpp.
References BMSfreeMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, CHECK_ZERO, grbenv, MOSEK_CALL, MosekEnv, NULL, numlp, SCIP_OKAY, SCIPdebugMessage, and SCIPlpiLoadColLP().
Referenced by addConcaveEstimatorMultivariate(), createLP(), SCIP_DECL_CONSEXITSOL(), SCIP_DECL_PARAMCHGD(), SCIPlpComputeRelIntPoint(), SCIPlpFree(), SCIPlpiCreate(), and sepadataFree().
SCIP_RETCODE SCIPlpiLoadColLP | ( | SCIP_LPI * | lpi, |
SCIP_OBJSEN | objsen, | ||
int | ncols, | ||
const SCIP_Real * | obj, | ||
const SCIP_Real * | lb, | ||
const SCIP_Real * | ub, | ||
char ** | colnames, | ||
int | nrows, | ||
const SCIP_Real * | lhs, | ||
const SCIP_Real * | rhs, | ||
char ** | rownames, | ||
int | nnonz, | ||
const int * | beg, | ||
const int * | ind, | ||
const SCIP_Real * | val | ||
) |
copies LP data with column matrix into LP solver
lpi | LP interface structure |
objsen | objective sense |
ncols | number of columns |
obj | objective function values of columns |
lb | lower bounds of columns |
ub | upper bounds of columns |
colnames | column names, or NULL |
nrows | number of rows |
lhs | left hand sides of rows |
rhs | right hand sides of rows |
rownames | row names, or NULL |
nnonz | number of nonzero elements in the constraint matrix |
beg | start index of each column in ind- and val-array |
ind | row indices of constraint matrix entries |
val | values of constraint matrix entries |
Definition at line 583 of file lpi_clp.cpp.
References addRangeInfo(), BMSallocMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, convertSides(), SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, cpxObjsen(), ensureColMem(), ensureRowMem(), ensureSidechgMem(), ensureValMem(), generateMskBounds(), getEndptrs(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::irbeg, SCIP_LPi::ircnt, SCIP_LPi::irhs, SCIP_LPi::irng, SCIP_LPi::isen, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::name, SCIP_LPi::ncols, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, QS_RETURN, SCIP_LPi::rhsarray, SCIP_LPi::rngarray, SCIP_ALLOC, SCIP_CALL, SCIP_LPERROR, SCIP_OBJSEN_MAXIMIZE, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiAddCols(), SCIPlpiChgObjsen(), SCIPlpiClear(), SCIPlpiGetNCols(), SCIPlpiGetNNonz(), SCIPlpiGetNRows(), SCIPmessagePrintWarning(), SCIP_LPi::senarray, SENSE2MOSEK, SCIP_LPi::solstat, SCIP_LPi::spx, spxObjsen(), SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiFree().
SCIP_RETCODE SCIPlpiAddCols | ( | SCIP_LPI * | lpi, |
int | ncols, | ||
const SCIP_Real * | obj, | ||
const SCIP_Real * | lb, | ||
const SCIP_Real * | ub, | ||
char ** | colnames, | ||
int | nnonz, | ||
const int * | beg, | ||
const int * | ind, | ||
const SCIP_Real * | val | ||
) |
adds columns to the LP
adds columns to the LP
lpi | LP interface structure |
ncols | number of columns to be added |
obj | objective function values of new columns |
lb | lower bounds of new columns |
ub | upper bounds of new columns |
colnames | column names, or NULL |
nnonz | number of nonzero elements to be added to the constraint matrix |
beg | start index of each column in ind- and val-array, or NULL if nnonz == 0 |
ind | row indices of constraint matrix entries, or NULL if nnonz == 0 |
val | values of constraint matrix entries, or NULL if nnonz == 0 |
Definition at line 649 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, delRangeVars(), ensureColMem(), ensureValMem(), generateMskBounds(), getEndptrs(), GRB_INFBOUND, SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rngvarsadded, SCIP_ALLOC, SCIP_CALL, SCIP_DEFAULT_INFINITY, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiDelCols(), SCIPlpiGetNRows(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by addAltLPColumn(), addConcaveEstimatorMultivariate(), createLP(), lpFlushAddCols(), SCIP_DECL_PARAMCHGD(), SCIPlpComputeRelIntPoint(), and SCIPlpiLoadColLP().
SCIP_RETCODE SCIPlpiDelCols | ( | SCIP_LPI * | lpi, |
int | firstcol, | ||
int | lastcol | ||
) |
deletes all columns in the given range from LP
lpi | LP interface structure |
firstcol | first column to be deleted |
lastcol | last column to be deleted |
Definition at line 716 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, debugCheckColrang(), ensureColMem(), ensureValMem(), getIndicesRange(), SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiDelColset(), SCIPlpiGetNCols(), SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpFlushDelCols(), SCIPlpiAddCols(), and SCIPlpiClear().
SCIP_RETCODE SCIPlpiDelColset | ( | SCIP_LPI * | lpi, |
int * | dstat | ||
) |
deletes columns from SCIP_LPI; the new position of a column must not be greater that its old position
deletes columns from SCIP_LP; the new position of a column must not be greater that its old position
deletes columns from LP; the new position of a column must not be greater that its old position
lpi | LP interface structure |
dstat | deletion status of columns input: 1 if column should be deleted, 0 if not output: new position of column, -1 if column was deleted |
Definition at line 747 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureValMem(), getIndicesFromDense(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiAddRows(), SCIPlpiGetNCols(), SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpDelColset(), and SCIPlpiDelCols().
SCIP_RETCODE SCIPlpiAddRows | ( | SCIP_LPI * | lpi, |
int | nrows, | ||
const SCIP_Real * | lhs, | ||
const SCIP_Real * | rhs, | ||
char ** | rownames, | ||
int | nnonz, | ||
const int * | beg, | ||
const int * | ind, | ||
const SCIP_Real * | val | ||
) |
adds rows to the LP
adds rows to the LP
lpi | LP interface structure |
nrows | number of rows to be added |
lhs | left hand sides of new rows |
rhs | right hand sides of new rows |
rownames | row names, or NULL |
nnonz | number of nonzero elements to be added to the constraint matrix |
beg | start index of each row in ind- and val-array, or NULL if nnonz == 0 |
ind | column indices of constraint matrix entries, or NULL if nnonz == 0 |
val | values of constraint matrix entries, or NULL if nnonz == 0 |
Definition at line 793 of file lpi_clp.cpp.
References addRangeInfo(), BMSallocMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, convertSides(), SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureRngrowmapMem(), ensureRowMem(), ensureSidechgMem(), ensureValMem(), FALSE, generateMskBounds(), getEndptrs(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::irbeg, SCIP_LPi::ircnt, SCIP_LPi::irhs, SCIP_LPi::irng, SCIP_LPi::isen, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_ERROR, SCIP_LPi::rhsarray, SCIP_LPi::rngarray, SCIP_LPi::rngfound, SCIP_LPi::rngindarray, SCIP_LPi::rngrowmap, SCIP_LPi::rngrows, SCIP_ALLOC, SCIP_CALL, SCIP_LPERROR, SCIP_LPPAR_SCALING, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiDelRows(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiSetIntpar(), SCIPmessagePrintWarning(), SCIP_LPi::senarray, SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, TRUE, and SCIP_LPi::xprslp.
Referenced by addAltLPColumn(), addConcaveEstimatorMultivariate(), createLP(), initAlternativeLP(), lpFlushAddRows(), SCIP_DECL_PARAMCHGD(), SCIPlpComputeRelIntPoint(), and SCIPlpiDelColset().
SCIP_RETCODE SCIPlpiDelRows | ( | SCIP_LPI * | lpi, |
int | firstrow, | ||
int | lastrow | ||
) |
deletes all rows in the given range from LP
lpi | LP interface structure |
firstrow | first row to be deleted |
lastrow | last row to be deleted |
Definition at line 855 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), clearRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, debugCheckRowrang(), delRangeVars(), ensureRowMem(), ensureValMem(), getIndicesRange(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::ircnt, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rngrowmap, SCIP_LPi::rngrows, SCIP_LPi::rngvals, SCIP_LPi::rngvarsadded, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiDelRowset(), SCIPlpiGetNRows(), SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpFlushDelRows(), SCIPlpiAddRows(), and SCIPlpiClear().
SCIP_RETCODE SCIPlpiDelRowset | ( | SCIP_LPI * | lpi, |
int * | dstat | ||
) |
deletes rows from SCIP_LPI; the new position of a row must not be greater that its old position
deletes rows from SCIP_LP; the new position of a row must not be greater that its old position
lpi | LP interface structure |
dstat | deletion status of rows input: 1 if row should be deleted, 0 if not output: new position of row, -1 if row was deleted |
Definition at line 887 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), clearRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, delRangeVars(), ensureValMem(), getIndicesFromDense(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_LPi::rngrowmap, SCIP_LPi::rngrows, SCIP_LPi::rngvals, SCIP_LPi::rngvarsadded, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiClear(), SCIPlpiGetNRows(), SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpDelRowset(), and SCIPlpiDelRows().
SCIP_RETCODE SCIPlpiClear | ( | SCIP_LPI * | lpi | ) |
clears the whole LP
lpi | LP interface structure |
Definition at line 933 of file lpi_clp.cpp.
References CHECK_ZERO, checkRangeInfo(), clearRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureColMem(), ensureRowMem(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::iccnt, invalidateSolution(), SCIP_LPi::ircnt, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::name, SCIP_LPi::ncols, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgBounds(), SCIPlpiDelCols(), SCIPlpiDelRows(), SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiDelRowset(), and SCIPlpiLoadColLP().
SCIP_RETCODE SCIPlpiChgBounds | ( | SCIP_LPI * | lpi, |
int | ncols, | ||
const int * | ind, | ||
const SCIP_Real * | lb, | ||
const SCIP_Real * | ub | ||
) |
changes lower and upper bounds of columns
lpi | LP interface structure |
ncols | number of columns to change bounds for |
ind | column indices |
lb | values for the new lower bounds |
ub | values for the new upper bounds |
Definition at line 952 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, CPX_MAGICZEROCONSTANT, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureBoundchgMem(), ensureColMem(), EPSZ, generateMskBounds(), SCIP_LPi::grbmodel, SCIP_LPi::iccha, invalidateSolution(), SCIP_LPi::larray, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_CONDRET, QS_RETURN, SCIP_ALLOC, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPdebugPrintf, SCIPerrorMessage, SCIPlpiChgSides(), SCIPlpiIsInfinity(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::uarray, and SCIP_LPi::xprslp.
Referenced by fixAltLPVariable(), fixAltLPVariables(), lpFlushChgCols(), lpLexDualSimplex(), runBoundHeuristic(), SCIPcomputeConvexEnvelopeFacet(), SCIPconflictAnalyzeStrongbranch(), SCIPlpiClear(), SCIPlpiScaleCol(), unfixAltLPVariable(), and unfixAltLPVariables().
SCIP_RETCODE SCIPlpiChgSides | ( | SCIP_LPI * | lpi, |
int | nrows, | ||
const int * | ind, | ||
const SCIP_Real * | lhs, | ||
const SCIP_Real * | rhs | ||
) |
changes left and right hand sides of rows
lpi | LP interface structure |
nrows | number of rows to change sides for |
ind | row indices |
lhs | new values for left hand sides |
rhs | new values for right hand sides |
Definition at line 1028 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), clearRangeInfo(), SCIP_LPi::clp, convertSides(), SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, delRangeVars(), ensureRngrowmapMem(), ensureRngrowsMem(), ensureRowMem(), ensureSidechgMem(), generateMskBounds(), SCIP_LPi::grbmodel, invalidateSolution(), SCIP_LPi::irhs, SCIP_LPi::irng, SCIP_LPi::isen, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_LPi::rhsarray, SCIP_LPi::rngarray, SCIP_LPi::rngindarray, SCIP_LPi::rngrowmap, SCIP_LPi::rngrows, SCIP_LPi::rngvals, SCIP_LPi::rngvarsadded, SCIP_ALLOC, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgCoef(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPmessagePrintWarning(), SCIPsortIntReal(), SCIP_LPi::senarray, SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpFlushChgRows(), lpLexDualSimplex(), runBoundHeuristic(), scaleFirstRow(), SCIPcomputeConvexEnvelopeFacet(), SCIPlpiChgBounds(), and SCIPlpiScaleRow().
SCIP_RETCODE SCIPlpiChgCoef | ( | SCIP_LPI * | lpi, |
int | row, | ||
int | col, | ||
SCIP_Real | newval | ||
) |
changes a single coefficient
lpi | LP interface structure |
row | row number of coefficient to change |
col | column number of coefficient to change |
newval | new value of coefficient |
Definition at line 1056 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::grbmodel, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgObjsen(), SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiChgSides(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), updateFirstRow(), updateFirstRowGlobal(), and updateObjUpperbound().
SCIP_RETCODE SCIPlpiChgObjsen | ( | SCIP_LPI * | lpi, |
SCIP_OBJSEN | objsense | ||
) |
changes the objective sense
lpi | LP interface structure |
objsense | new objective sense |
Definition at line 1079 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, cpxObjsen(), SCIP_LPi::grbmodel, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_OBJSEN_MAXIMIZE, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgObj(), SENSE2MOSEK, SCIP_LPi::solstat, SOPLEX_TRY, SCIP_LPi::spx, spxObjsen(), SCIP_LPi::task, SCIP_LPi::xprslp, and xprsObjsen().
Referenced by SCIPlpiChgCoef(), SCIPlpiCreate(), and SCIPlpiLoadColLP().
SCIP_RETCODE SCIPlpiChgObj | ( | SCIP_LPI * | lpi, |
int | ncols, | ||
const int * | ind, | ||
const SCIP_Real * | obj | ||
) |
changes objective values of columns in the LP
lpi | LP interface structure |
ncols | number of columns to change objective value for |
ind | column indices to change objective value for |
obj | new objective values for columns |
Definition at line 1099 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::grbmodel, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiScaleRow(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpFlushChgCols(), lpLexDualSimplex(), SCIPcomputeConvexEnvelopeFacet(), SCIPlpiChgObjsen(), SCIPlpiScaleCol(), setAltLPObj(), and setAltLPObjZero().
SCIP_RETCODE SCIPlpiScaleRow | ( | SCIP_LPI * | lpi, |
int | row, | ||
SCIP_Real | scaleval | ||
) |
multiplies a row with a non-zero scalar; for negative scalars, the row's sense is switched accordingly
lpi | LP interface structure |
row | row number to scale |
scaleval | scaling multiplier |
Definition at line 1126 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureValMem(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, infinity, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_RETURN, QS_TESTG, scale_bound(), scale_vec(), SCIP_ALLOC, SCIP_CALL, SCIP_DEFAULT_INFINITY, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiChgCoef(), SCIPlpiChgSides(), SCIPlpiGetNCols(), SCIPlpiGetRows(), SCIPlpiScaleCol(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::valarray, and SCIP_LPi::xprslp.
Referenced by SCIPlpiChgObj().
SCIP_RETCODE SCIPlpiScaleCol | ( | SCIP_LPI * | lpi, |
int | col, | ||
SCIP_Real | scaleval | ||
) |
multiplies a column with a non-zero scalar; the objective value is multiplied with the scalar, and the bounds are divided by the scalar; for negative scalars, the column's bounds are switched
lpi | LP interface structure |
col | column number to scale |
scaleval | scaling multiplier |
Definition at line 1199 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureValMem(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, infinity, invalidateSolution(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_RETURN, QS_TESTG, scale_bound(), scale_vec(), SCIP_ALLOC, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiChgBounds(), SCIPlpiChgCoef(), SCIPlpiChgObj(), SCIPlpiGetCols(), SCIPlpiGetNRows(), SCIPlpiGetObj(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::valarray, and SCIP_LPi::xprslp.
Referenced by SCIPlpiScaleRow().
SCIP_RETCODE SCIPlpiGetNRows | ( | SCIP_LPI * | lpi, |
int * | nrows | ||
) |
gets the number of rows in the LP
lpi | LP interface structure |
nrows | pointer to store the number of rows |
Definition at line 1276 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetNCols(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by addAltLPColumn(), addRangeInfo(), checkRangeInfo(), SCIPcomputeConvexEnvelopeFacet(), SCIPlpFlush(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgSides(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiGetBase(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetDualfarkas(), SCIPlpiGetRows(), SCIPlpiGetSol(), SCIPlpiGetState(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiSetBase(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), and SCIPlpiSolvePrimal().
SCIP_RETCODE SCIPlpiGetNCols | ( | SCIP_LPI * | lpi, |
int * | ncols | ||
) |
gets the number of columns in the LP
lpi | LP interface structure |
ncols | pointer to store the number of cols |
Definition at line 1294 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, NULL, SCIP_LPi::prob, SCIP_LPi::rngvarsadded, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetNNonz(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by addAltLPColumn(), addRangeInfo(), checkIISlocal(), checkLPBoundsClean(), delRangeVars(), extendToCover(), scaleFirstRow(), SCIPcomputeConvexEnvelopeFacet(), SCIPlpComputeRelIntPoint(), SCIPlpFlush(), SCIPlpiAddRows(), SCIPlpiChgSides(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiGetBase(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvARow(), SCIPlpiGetBounds(), SCIPlpiGetCols(), SCIPlpiGetNRows(), SCIPlpiGetPrimalRay(), SCIPlpiGetSol(), SCIPlpiGetState(), SCIPlpiLoadColLP(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), and SCIPlpiSolvePrimal().
SCIP_RETCODE SCIPlpiGetObjsen | ( | SCIP_LPI * | lpi, |
SCIP_OBJSEN * | objsen | ||
) |
gets the objective sense of the LP
gets objective sense of the LP
lpi | LP interface structure |
objsen | pointer to store objective sense |
Definition at line 1514 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OBJSEN_MAXIMIZE, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetObj(), SCIP_LPi::spx, and SCIP_LPi::xprslp.
Referenced by lpiStrongbranch(), lpiStrongbranches(), SCIPlpiGetRealpar(), SCIPlpiGetRowNames(), and SCIPlpiSetRealpar().
SCIP_RETCODE SCIPlpiGetNNonz | ( | SCIP_LPI * | lpi, |
int * | nnonz | ||
) |
gets the number of nonzero elements in the LP constraint matrix
lpi | LP interface structure |
nnonz | pointer to store the number of nonzeros |
Definition at line 1312 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrngrows, NULL, SCIP_LPi::prob, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetCols(), SOPLEX_SUBVERSION, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiGetCols(), SCIPlpiGetNCols(), SCIPlpiGetRows(), and SCIPlpiLoadColLP().
SCIP_RETCODE SCIPlpiGetCols | ( | SCIP_LPI * | lpi, |
int | firstcol, | ||
int | lastcol, | ||
SCIP_Real * | lb, | ||
SCIP_Real * | ub, | ||
int * | nnonz, | ||
int * | beg, | ||
int * | ind, | ||
SCIP_Real * | val | ||
) |
gets columns from LP problem object; the arrays have to be large enough to store all values; Either both, lb and ub, have to be NULL, or both have to be non-NULL, either nnonz, beg, ind, and val have to be NULL, or all of them have to be non-NULL.
gets columns from LP problem object; the arrays have to be large enough to store all values Either both, lb and ub, have to be 0, or both have to be non-0, either nnonz, beg, ind, and val have to be 0, or all of them have to be non-0.
gets columns from LP problem object; the arrays have to be large enough to store all values Either both, lb and ub, have to be NULL, or both have to be non-NULL, either nnonz, beg, ind, and val have to be NULL, or all of them have to be non-NULL.
lpi | LP interface structure |
firstcol | first column to get from LP |
lastcol | last column to get from LP |
lb | buffer to store the lower bound vector, or NULL |
ub | buffer to store the upper bound vector, or NULL |
nnonz | pointer to store the number of nonzero elements returned, or NULL |
beg | buffer to store start index of each column in ind- and val-array, or NULL |
ind | buffer to store column indices of constraint matrix entries, or NULL |
val | buffer to store values of constraint matrix entries, or NULL |
Definition at line 1333 of file lpi_clp.cpp.
References BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, debugCheckColrang(), ensureColMem(), ensureValMem(), errorMessage(), getASlice(), GRB_INFBOUND, SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::indarray, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, QS_TESTG, SCIP_CALL, SCIP_DEFAULT_INFINITY, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetBounds(), SCIPlpiGetNCols(), SCIPlpiGetNNonz(), SCIPlpiGetRows(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiGetNNonz(), and SCIPlpiScaleCol().
SCIP_RETCODE SCIPlpiGetRows | ( | SCIP_LPI * | lpi, |
int | firstrow, | ||
int | lastrow, | ||
SCIP_Real * | lhss, | ||
SCIP_Real * | rhss, | ||
int * | nnonz, | ||
int * | beg, | ||
int * | ind, | ||
SCIP_Real * | val | ||
) |
gets rows from LP problem object; the arrays have to be large enough to store all values. Either both, lhs and rhs, have to be NULL, or both have to be non-NULL, either nnonz, beg, ind, and val have to be NULL, or all of them have to be non-NULL.
gets rows from LP problem object; the arrays have to be large enough to store all values. Either both, lhs and rhs, have to be 0, or both have to be non-0, either nnonz, beg, ind, and val have to be 0, or all of them have to be non-0.
lpi | LP interface structure |
firstrow | first row to get from LP |
lastrow | last row to get from LP |
lhss | buffer to store left hand side vector, or NULL |
rhss | buffer to store right hand side vector, or NULL |
nnonz | pointer to store the number of nonzero elements returned, or NULL |
beg | buffer to store start index of each row in ind- and val-array, or NULL |
ind | buffer to store row indices of constraint matrix entries, or NULL |
val | buffer to store values of constraint matrix entries, or NULL |
Definition at line 1400 of file lpi_clp.cpp.
References BMSclearMemoryArray, BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, debugCheckRowrang(), ensureRowMem(), ensureSidechgMem(), ensureValMem(), errorMessage(), getASlice(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, SCIP_LPi::ircnt, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MosekEnv, SCIP_LPi::nrngrows, NULL, SCIP_LPi::prob, QS_RETURN, QS_TESTG, reconvertSides(), SCIP_LPi::rhsarray, SCIP_LPi::rngarray, SCIP_LPi::rngrowmap, SCIP_LPi::rngrows, SCIP_LPi::rngvarsadded, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetColNames(), SCIPlpiGetNNonz(), SCIPlpiGetNRows(), SCIPlpiGetSides(), SCIP_LPi::senarray, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by scaleFirstRow(), SCIPlpiGetCols(), and SCIPlpiScaleRow().
SCIP_RETCODE SCIPlpiGetColNames | ( | SCIP_LPI * | lpi, |
int | firstcol, | ||
int | lastcol, | ||
char ** | colnames, | ||
char * | namestorage, | ||
int | namestoragesize, | ||
int * | storageleft | ||
) |
gets column names
lpi | LP interface structure |
firstcol | first column to get name from LP |
lastcol | last column to get name from LP |
colnames | pointers to column names (of size at least lastcol-firstcol+1) |
namestorage | storage for col names |
namestoragesize | size of namestorage (if 0, storageleft returns the storage needed) |
storageleft | amount of storage left (if < 0 the namestorage was not big enough) |
Definition at line 1464 of file lpi_clp.cpp.
References BMSallocMemoryArray, CHECK_ZERO, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::messagehdlr, SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_ERROR, SCIP_ALLOC, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetRowNames(), and SCIP_LPi::spx.
Referenced by SCIPlpiGetRows().
SCIP_RETCODE SCIPlpiGetRowNames | ( | SCIP_LPI * | lpi, |
int | firstrow, | ||
int | lastrow, | ||
char ** | rownames, | ||
char * | namestorage, | ||
int | namestoragesize, | ||
int * | storageleft | ||
) |
gets row names
lpi | LP interface structure |
firstrow | first row to get name from LP |
lastrow | last row to get name from LP |
rownames | pointers to row names (of size at least lastrow-firstrow+1) |
namestorage | storage for row names |
namestoragesize | size of namestorage (if 0, -storageleft returns the storage needed) |
storageleft | amount of storage left (if < 0 the namestorage was not big enough) |
Definition at line 1480 of file lpi_clp.cpp.
References BMSallocMemoryArray, CHECK_ZERO, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::messagehdlr, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_ERROR, SCIP_ALLOC, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetObjsen(), and SCIP_LPi::spx.
Referenced by SCIPlpiGetColNames().
SCIP_RETCODE SCIPlpiGetObj | ( | SCIP_LPI * | lpi, |
int | firstcol, | ||
int | lastcol, | ||
SCIP_Real * | vals | ||
) |
gets objective coefficients from LP problem object
lpi | LP interface structure |
firstcol | first column to get objective coefficient for |
lastcol | last column to get objective coefficient for |
vals | array to store objective coefficients |
Definition at line 1534 of file lpi_clp.cpp.
References BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureColMem(), errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetBounds(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpFlushChgCols(), lpLexDualSimplex(), SCIPlpiGetObjsen(), SCIPlpiScaleCol(), and SCIPlpMarkFlushed().
SCIP_RETCODE SCIPlpiGetBounds | ( | SCIP_LPI * | lpi, |
int | firstcol, | ||
int | lastcol, | ||
SCIP_Real * | lbs, | ||
SCIP_Real * | ubs | ||
) |
gets current bounds from LP problem object
lpi | LP interface structure |
firstcol | first column to get bounds for |
lastcol | last column to get bounds for |
lbs | array to store lower bound values, or NULL |
ubs | array to store upper bound values, or NULL |
Definition at line 1557 of file lpi_clp.cpp.
References BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureColMem(), errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetNCols(), SCIPlpiGetSides(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by checkLPBoundsClean(), lpFlushChgCols(), lpLexDualSimplex(), SCIPlpiGetCols(), SCIPlpiGetObj(), and SCIPlpMarkFlushed().
SCIP_RETCODE SCIPlpiGetSides | ( | SCIP_LPI * | lpi, |
int | firstrow, | ||
int | lastrow, | ||
SCIP_Real * | lhss, | ||
SCIP_Real * | rhss | ||
) |
gets current row sides from LP problem object
lpi | LP interface structure |
firstrow | first row to get sides for |
lastrow | last row to get sides for |
lhss | array to store left hand side values, or NULL |
rhss | array to store right hand side values, or NULL |
Definition at line 1588 of file lpi_clp.cpp.
References BMSclearMemoryArray, BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureRowMem(), ensureSidechgMem(), errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::ircnt, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, QS_TESTG, reconvertSides(), SCIP_LPi::rhsarray, SCIP_LPi::rngarray, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetCoef(), SCIP_LPi::senarray, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by getFarkasProof(), lpFlushChgRows(), lpLexDualSimplex(), SCIPlpiGetBounds(), SCIPlpiGetRows(), and SCIPlpMarkFlushed().
SCIP_RETCODE SCIPlpiGetCoef | ( | SCIP_LPI * | lpi, |
int | row, | ||
int | col, | ||
SCIP_Real * | val | ||
) |
gets a single coefficient
lpi | LP interface structure |
row | row number of coefficient |
col | column number of coefficient |
val | pointer to store the value of the coefficient |
Definition at line 1619 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIP_LPi::spx, spxSolve(), SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPdummyDebugMethodForSun(), SCIPlpiGetSides(), and updateObjUpperbound().
SCIP_RETCODE SCIPlpiSolvePrimal | ( | SCIP_LPI * | lpi | ) |
calls primal simplex to solve the LP
calls primal simplex to solve the LP
startFinishOptions - bits 1 - do not delete work areas and factorization at end 2 - use old factorization if same number of rows 4 - skip as much initialization of work areas as possible (work in progress)
4 does not seem to work.
Primal algorithm
lpi | LP interface structure |
Definition at line 1653 of file lpi_clp.cpp.
References addRangeVars(), CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clearstate, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, errorMessage(), FALSE, SCIP_LPi::fromscratch, getIntParam(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::grbparam, SCIP_LPi::instabilityignored, invalidateSolution(), SCIP_LPi::iterations, SCIP_LPi::lpid, lpiSolve(), SCIP_LPi::messagehdlr, MOSEK_CALL, SCIP_LPi::nrngrows, NULL, numprimalmaxiter, numprimalobj, optimizecount, presolve(), SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rngvarsadded, SCIP_LPi::rowrepswitch, SCIP_Bool, SCIP_CALL, SCIP_LPERROR, SCIP_NOMEMORY, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiHasPrimalRay(), SCIPlpiIsPrimalInfeasible(), SCIPlpiSolveDual(), SCIPlpiWriteLP(), SCIPlpiWriteState(), SCIP_LPi::setFactorizationFrequency, setIntParam(), setParameterValues(), SCIP_LPi::solisbasic, SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::solved, SolveWSimplex(), SCIP_LPi::spx, spxSolve(), SCIP_LPi::startscratch, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, SCIP_LPi::validFactorization, and WRITE_ABOVE.
Referenced by checkAltLPInfeasible(), handle_singular(), lpLexDualSimplex(), lpPrimalSimplex(), SCIP_DECL_PARAMCHGD(), SCIPcomputeConvexEnvelopeFacet(), and spxSolve().
SCIP_RETCODE SCIPlpiSolveDual | ( | SCIP_LPI * | lpi | ) |
calls dual simplex to solve the LP
calls dual simplex to solve the LP
startFinishOptions - bits 1 - do not delete work areas and factorization at end 2 - use old factorization if same number of rows 4 - skip as much initialization of work areas as possible (work in progress)
4 does not seem to work.
Dual algorithm
lpi | LP interface structure |
Definition at line 1726 of file lpi_clp.cpp.
References addRangeVars(), CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clearstate, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, errorMessage(), FALSE, SCIP_LPi::fromscratch, getDblParam(), getIntParam(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::grbparam, SCIP_LPi::instabilityignored, invalidateSolution(), SCIP_LPi::iterations, SCIP_LPi::lpid, lpiSolve(), SCIP_LPi::messagehdlr, MOSEK_CALL, SCIP_LPi::nrngrows, NULL, numdualmaxiter, numdualobj, optimizecount, presolve(), SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rngvarsadded, SCIP_LPi::rowrepswitch, SCIP_Bool, SCIP_CALL, SCIP_LPERROR, SCIP_NOMEMORY, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiGetObjval(), SCIPlpiIsObjlimExc(), SCIPlpiSolveBarrier(), SCIPlpiWriteLP(), SCIPlpiWriteState(), setDblParam(), SCIP_LPi::setFactorizationFrequency, setIntParam(), setParameterValues(), SCIP_LPi::solisbasic, SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::solved, SolveWSimplex(), SCIP_LPi::spx, spxSolve(), SCIP_LPi::startscratch, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, SCIP_LPi::validFactorization, and WRITE_ABOVE.
Referenced by addConcaveEstimatorMultivariate(), checkAltLPInfeasible(), conflictAnalyzeLP(), lpDualSimplex(), lpiStrongbranch(), lpiStrongbranchIntegral(), lpLexDualSimplex(), runBoundHeuristic(), SCIPcomputeConvexEnvelopeFacet(), SCIPconflictAnalyzeStrongbranch(), SCIPlpComputeRelIntPoint(), SCIPlpiSolveBarrier(), SCIPlpiSolvePrimal(), and SCIPlpiStrongbranch().
SCIP_RETCODE SCIPlpiSolveBarrier | ( | SCIP_LPI * | lpi, |
SCIP_Bool | crossover | ||
) |
calls barrier or interior point algorithm to solve the LP with crossover to simplex basis
lpi | LP interface structure |
crossover | perform crossover |
Definition at line 1801 of file lpi_clp.cpp.
References addRangeVars(), CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clearstate, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, errorMessage(), FALSE, filterTRMrescode(), SCIP_LPi::fromscratch, SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::grbparam, SCIP_LPi::instabilityignored, invalidateSolution(), SCIP_LPi::iterations, SCIP_LPi::itercount, SCIP_LPi::lpid, lpiSolve(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrngrows, NULL, numdualmaxiter, optimizecount, presolve(), SCIP_LPi::rngvarsadded, SCIP_CALL, SCIP_INVALIDCALL, SCIP_LPERROR, SCIP_NOMEMORY, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiSolveDual(), SCIPlpiStartStrongbranch(), setIntParam(), setParameterValues(), SCIP_LPi::solisbasic, SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::solved, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, WRITE_ABOVE, and SCIP_LPi::xprslp.
Referenced by lpBarrier(), SCIPlpiSolveDual(), and SolveWSimplex().
SCIP_RETCODE SCIPlpiStartStrongbranch | ( | SCIP_LPI * | lpi | ) |
start strong branching - call before any strong branching
start strong branching - call before any strongbranching
start strong branching
lpi | LP interface structure |
Definition at line 1842 of file lpi_clp.cpp.
References NULL, SCIP_OKAY, SCIPlpiEndStrongbranch(), and SCIP_LPi::spx.
Referenced by SCIPconflictAnalyzeStrongbranch(), SCIPlpiSolveBarrier(), and SCIPlpStartStrongbranch().
SCIP_RETCODE SCIPlpiEndStrongbranch | ( | SCIP_LPI * | lpi | ) |
end strong branching - call after any strong branching
end strong branching - call after any strongbranching
end strong branching
lpi | LP interface structure |
Definition at line 1851 of file lpi_clp.cpp.
References lpiStrongbranch(), NULL, SCIP_OKAY, and SCIP_LPi::spx.
Referenced by SCIPconflictAnalyzeStrongbranch(), SCIPlpEndStrongbranch(), and SCIPlpiStartStrongbranch().
SCIP_RETCODE SCIPlpiStrongbranchFrac | ( | SCIP_LPI * | lpi, |
int | col, | ||
SCIP_Real | psol, | ||
int | itlim, | ||
SCIP_Real * | down, | ||
SCIP_Real * | up, | ||
SCIP_Bool * | downvalid, | ||
SCIP_Bool * | upvalid, | ||
int * | iter | ||
) |
performs strong branching iterations on one fractional candidate
lpi | LP interface structure |
col | column to apply strong branching on |
psol | fractional current primal solution value of column |
itlim | iteration limit for strong branchings |
down | stores dual bound after branching column down |
up | stores dual bound after branching column up |
downvalid | stores whether the returned down value is a valid dual bound; otherwise, it can only be used as an estimate value |
upvalid | stores whether the returned up value is a valid dual bound; otherwise, it can only be used as an estimate value |
iter | stores total number of strong branching iterations, or -1; may be NULL |
Definition at line 2190 of file lpi_clp.cpp.
References CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clearstate, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, EPSISINT, errorMessage(), FALSE, FEASTOL, SCIP_LPi::feastol, SCIP_LPi::fromscratch, lpiStrongbranch(), SCIP_LPi::messagehdlr, NULL, SCIP_LPi::previt, SCIP_LPi::prob, QS_CONDRET, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiStrongbranch(), SCIPlpiStrongbranchesFrac(), setIntParam(), setParameterValues(), and TRUE.
Referenced by lpiStrongbranch(), and SCIPcolGetStrongbranch().
SCIP_RETCODE SCIPlpiStrongbranchesFrac | ( | SCIP_LPI * | lpi, |
int * | cols, | ||
int | ncols, | ||
SCIP_Real * | psols, | ||
int | itlim, | ||
SCIP_Real * | down, | ||
SCIP_Real * | up, | ||
SCIP_Bool * | downvalid, | ||
SCIP_Bool * | upvalid, | ||
int * | iter | ||
) |
performs strong branching iterations on given fractional candidates
lpi | LP interface structure |
cols | columns to apply strong branching on |
ncols | number of columns |
psols | fractional current primal solution values of columns |
itlim | iteration limit for strong branchings |
down | stores dual bounds after branching columns down |
up | stores dual bounds after branching columns up |
downvalid | stores whether the returned down values are valid dual bounds; otherwise, they can only be used as an estimate values |
upvalid | stores whether the returned up values are a valid dual bounds; otherwise, they can only be used as an estimate values |
iter | stores total number of strong branching iterations, or -1; may be NULL |
Definition at line 2211 of file lpi_clp.cpp.
References CHECK_ZERO, checkRangeInfo(), SCIP_LPi::clearstate, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, EPSISINT, errorMessage(), FALSE, FEASTOL, SCIP_LPi::feastol, SCIP_LPi::fromscratch, lpiStrongbranch(), lpiStrongbranches(), SCIP_LPi::messagehdlr, SCIP_LPi::ncols, NULL, SCIP_LPi::previt, SCIP_LPi::prob, QS_CONDRET, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiStrongbranch(), SCIPlpiStrongbranchInt(), setIntParam(), setParameterValues(), and TRUE.
Referenced by SCIPcolGetStrongbranches(), and SCIPlpiStrongbranchFrac().
SCIP_RETCODE SCIPlpiStrongbranchInt | ( | SCIP_LPI * | lpi, |
int | col, | ||
SCIP_Real | psol, | ||
int | itlim, | ||
SCIP_Real * | down, | ||
SCIP_Real * | up, | ||
SCIP_Bool * | downvalid, | ||
SCIP_Bool * | upvalid, | ||
int * | iter | ||
) |
performs strong branching iterations on one candidate with integral value
lpi | LP interface structure |
col | column to apply strong branching on |
psol | current integral primal solution value of column |
itlim | iteration limit for strong branchings |
down | stores dual bound after branching column down |
up | stores dual bound after branching column up |
downvalid | stores whether the returned down value is a valid dual bound; otherwise, it can only be used as an estimate value |
upvalid | stores whether the returned up value is a valid dual bound; otherwise, it can only be used as an estimate value |
iter | stores total number of strong branching iterations, or -1; may be NULL |
Definition at line 2236 of file lpi_clp.cpp.
References checkRangeInfo(), SCIP_LPi::cpxlp, EPSISINT, errorMessage(), FEASTOL, SCIP_LPi::feastol, lpiStrongbranch(), lpiStrongbranchIntegral(), NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPlpiStrongbranch(), SCIPlpiStrongbranchesInt(), and TRUE.
Referenced by SCIPcolGetStrongbranch(), and SCIPlpiStrongbranchesFrac().
SCIP_RETCODE SCIPlpiStrongbranchesInt | ( | SCIP_LPI * | lpi, |
int * | cols, | ||
int | ncols, | ||
SCIP_Real * | psols, | ||
int | itlim, | ||
SCIP_Real * | down, | ||
SCIP_Real * | up, | ||
SCIP_Bool * | downvalid, | ||
SCIP_Bool * | upvalid, | ||
int * | iter | ||
) |
performs strong branching iterations on given candidates with integral values
lpi | LP interface structure |
cols | columns to apply strong branching on |
ncols | number of columns |
psols | current integral primal solution values of columns |
itlim | iteration limit for strong branchings |
down | stores dual bounds after branching columns down |
up | stores dual bounds after branching columns up |
downvalid | stores whether the returned down values are valid dual bounds; otherwise, they can only be used as an estimate values |
upvalid | stores whether the returned up values are a valid dual bounds; otherwise, they can only be used as an estimate values |
iter | stores total number of strong branching iterations, or -1; may be NULL |
Definition at line 2257 of file lpi_clp.cpp.
References checkRangeInfo(), SCIP_LPi::cpxlp, EPSISINT, errorMessage(), FEASTOL, SCIP_LPi::feastol, lpiStrongbranch(), lpiStrongbranches(), lpiStrongbranchIntegral(), SCIP_LPi::ncols, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_Bool, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPlpiStrongbranch(), SCIPlpiWasSolved(), and TRUE.
Referenced by SCIPcolGetStrongbranches(), and SCIPlpiStrongbranchInt().
returns whether a solve method was called after the last modification of the LP
lpi | LP interface structure |
Definition at line 2292 of file lpi_clp.cpp.
References errorMessageAbort(), FALSE, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPdebugMessage, SCIPlpiGetSolFeasibility(), SCIP_LPi::solstat, SCIP_LPi::solved, and SCIP_LPi::task.
Referenced by performStrongbranchWithPropagation(), SCIPconflictAnalyzeLP(), and SCIPlpiStrongbranchesInt().
SCIP_RETCODE SCIPlpiGetSolFeasibility | ( | SCIP_LPI * | lpi, |
SCIP_Bool * | primalfeasible, | ||
SCIP_Bool * | dualfeasible | ||
) |
gets information about primal and dual feasibility of the current LP solution
gets information about primal and dual feasibility of the current LP solution
here "true" should mean feasible, "false" should mean unknown
lpi | LP interface structure |
primalfeasible | stores primal feasibility status |
dualfeasible | stores dual feasibility status |
Definition at line 2302 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), FALSE, SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, SCIP_Bool, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiExistsPrimalRay(), SCIPlpiIsDualFeasible(), SCIPlpiIsPrimalFeasible(), SCIP_LPi::solmethod, SCIP_LPi::solstat, SUMINFEASBOUND, SCIP_LPi::task, TRUE, XPRS_LP_OPTIMAL_SCALEDINFEAS, and SCIP_LPi::xprslp.
Referenced by lpAlgorithm(), SCIPlpiStrongbranch(), and SCIPlpiWasSolved().
returns TRUE iff LP is proven to have a primal unbounded ray (but not necessary a primal feasible point); this does not necessarily mean, that the solver knows and can return the primal ray
lpi | LP interface structure |
Definition at line 2347 of file lpi_clp.cpp.
References SCIP_LPi::clp, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPdebugMessage, SCIPlpiHasPrimalRay(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by checkAltLPInfeasible(), lpSolve(), SCIPlpiGetSolFeasibility(), SCIPlpiIsDualInfeasible(), and SCIPlpiStrongbranch().
returns TRUE iff LP is proven to have a primal unbounded ray (but not necessary a primal feasible point), and the solver knows and can return the primal ray
lpi | LP interface structure |
Definition at line 2365 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPABORT, SCIPdebugMessage, SCIPlpiIsPrimalUnbounded(), SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpSolve(), SCIPlpGetPrimalRay(), SCIPlpGetUnboundedSol(), SCIPlpiExistsPrimalRay(), and SCIPlpiSolvePrimal().
returns TRUE iff LP is proven to be primal unbounded
returns TRUE iff LP is proven to be primal feasible and unbounded
lpi | LP interface structure |
Definition at line 2381 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, SCIP_LPi::grbenv, SCIP_LPi::grbmodel, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPABORT, SCIPdebugMessage, SCIPlpiIsPrimalInfeasible(), SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::spx, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), checkAltLPInfeasible(), and SCIPlpiHasPrimalRay().
returns TRUE iff LP is proven to be primal infeasible
lpi | LP interface structure |
Definition at line 2395 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, SCIP_LPi::grbmodel, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPdebugMessage, SCIPlpiExistsDualRay(), SCIPlpiIsPrimalFeasible(), SCIP_LPi::solstat, SCIP_LPi::spx, and SCIP_LPi::xprslp.
Referenced by checkAltLPInfeasible(), conflictAnalyzeLP(), getFarkasProof(), lpiStrongbranch(), lpiStrongbranchIntegral(), lpSolve(), runBoundHeuristic(), SCIP_DECL_PARAMCHGD(), SCIPconflictAnalyzeLP(), SCIPlpiIsPrimalUnbounded(), and SCIPlpiSolvePrimal().
returns TRUE iff LP is proven to be primal feasible
lpi | LP interface structure |
Definition at line 2414 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPABORT, SCIPdebugMessage, SCIPlpiExistsDualRay(), SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, XPRS_LP_OPTIMAL_SCALEDINFEAS, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), lpSolve(), SCIPlpiGetSolFeasibility(), SCIPlpiIsOptimal(), and SCIPlpiIsPrimalInfeasible().
returns TRUE iff LP is proven to have a dual unbounded ray (but not necessary a dual feasible point); this does not necessarily mean, that the solver knows and can return the dual ray
lpi | LP interface structure |
Definition at line 2430 of file lpi_clp.cpp.
References SCIP_LPi::clp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPdebugMessage, SCIPlpiHasDualRay(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiGetState(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsPrimalInfeasible(), and SCIPlpiStrongbranch().
returns TRUE iff LP is proven to have a dual unbounded ray (but not necessary a dual feasible point), and the solver knows and can return the dual ray
lpi | LP interface structure |
Definition at line 2448 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPABORT, SCIPdebugMessage, SCIPlpiIsDualUnbounded(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, TRUE, and SCIP_LPi::xprslp.
Referenced by getFarkasProof(), lpSolve(), SCIPlpiExistsDualRay(), and SCIPlpSolveAndEval().
returns TRUE iff LP is proven to be dual unbounded
returns TRUE iff LP is dual unbounded
lpi | LP interface structure |
Definition at line 2476 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, SCIP_LPi::grbenv, SCIP_LPi::grbmodel, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPABORT, SCIPdebugMessage, SCIPlpiIsDualInfeasible(), SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::spx, and SCIP_LPi::xprslp.
Referenced by SCIPlpiHasDualRay().
returns TRUE iff LP is proven to be dual infeasible
returns TRUE iff LP is dual infeasible
lpi | LP interface structure |
Definition at line 2493 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, SCIP_LPi::grbmodel, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPdebugMessage, SCIPlpiExistsPrimalRay(), SCIPlpiIsDualFeasible(), SCIP_LPi::solstat, SCIP_LPi::spx, and SCIP_LPi::xprslp.
Referenced by SCIPlpiIsDualUnbounded().
returns TRUE iff LP is proven to be dual feasible
lpi | LP interface structure |
Definition at line 2507 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbenv, SCIP_LPi::grbmodel, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPABORT, SCIPdebugMessage, SCIPlpiIsOptimal(), SCIP_LPi::solmethod, SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, XPRS_LP_OPTIMAL_SCALEDINFEAS, and SCIP_LPi::xprslp.
Referenced by conflictAnalyzeLP(), getFarkasProof(), lpSolve(), performStrongbranchWithPropagation(), runBoundHeuristic(), SCIPlpiGetSolFeasibility(), SCIPlpiIsDualInfeasible(), and SCIPlpiIsOptimal().
returns TRUE iff LP was solved to optimality
lpi | LP interface structure |
Definition at line 2521 of file lpi_clp.cpp.
References SCIP_LPi::clp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_ABORT_FALSE, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsDualFeasible(), SCIPlpiIsObjlimExc(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsStable(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, XPRS_LP_OPTIMAL_SCALEDINFEAS, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), checkAltLPInfeasible(), conflictAnalyzeLP(), lpiStrongbranch(), lpiStrongbranchIntegral(), lpLexDualSimplex(), lpSolve(), SCIPlpComputeRelIntPoint(), SCIPlpiIsDualFeasible(), and SCIPlpiIsStable().
returns TRUE iff current LP basis is stable
lpi | LP interface structure |
Definition at line 2539 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::checkcondition, SCIP_LPi::clp, SCIP_LPi::conditionlimit, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, SCIP_LPi::grbmodel, MosekEnv, NULL, SCIP_LPi::prob, SCIP_Bool, SCIP_INVALID, SCIP_LPSOLQUALITY_ESTIMCONDITION, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPdebugMessage, SCIPlpiGetRealSolQuality(), SCIPlpiIsObjlimExc(), SCIPlpiIsOptimal(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, XPRS_LP_OPTIMAL_SCALEDINFEAS, and SCIP_LPi::xprslp.
Referenced by checkAltLPInfeasible(), lpSolveStable(), SCIPlpiIsOptimal(), and SCIPlpiStrongbranch().
returns TRUE iff the objective limit was reached
lpi | LP interface structure |
Definition at line 2577 of file lpi_clp.cpp.
References SCIP_LPi::clp, errorMessageAbort(), FALSE, SCIP_LPi::grbmodel, MosekEnv, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsIterlimExc(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), conflictAnalyzeLP(), getFarkasProof(), lpiStrongbranch(), lpiStrongbranchIntegral(), lpSolve(), runBoundHeuristic(), SCIPlpiIsOptimal(), SCIPlpiIsStable(), SCIPlpiSolveDual(), and SCIPlpSolveAndEval().
returns TRUE iff the iteration limit was reached
lpi | LP interface structure |
Definition at line 2607 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, errorMessageAbort(), FALSE, SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MosekEnv, NULL, SCIP_LPi::prob, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsTimelimExc(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), lpiStrongbranch(), lpiStrongbranchIntegral(), lpSolve(), lpSolveStable(), SCIPlpComputeRelIntPoint(), and SCIPlpiIsObjlimExc().
returns TRUE iff the time limit was reached
lpi | LP interface structure |
Definition at line 2623 of file lpi_clp.cpp.
References ABORT_ZERO, SCIP_LPi::clp, errorMessageAbort(), FALSE, SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MosekEnv, NULL, SCIP_LPi::prob, SCIPdebugMessage, SCIPlpiGetInternalStatus(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, SCIP_LPi::termcode, TRUE, and SCIP_LPi::xprslp.
Referenced by lpSolve(), SCIPlpComputeRelIntPoint(), and SCIPlpiIsIterlimExc().
int SCIPlpiGetInternalStatus | ( | SCIP_LPI * | lpi | ) |
returns the internal solution status of the solver
lpi | LP interface structure |
Definition at line 2639 of file lpi_clp.cpp.
References SCIP_LPi::clp, SCIP_LPi::cpxlp, errorMessageAbort(), FALSE, getSolutionStatus(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIPlpiIgnoreInstability(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by checkAltLPInfeasible(), lpSolve(), and SCIPlpiIsTimelimExc().
SCIP_RETCODE SCIPlpiIgnoreInstability | ( | SCIP_LPI * | lpi, |
SCIP_Bool * | success | ||
) |
tries to reset the internal status of the LP solver in order to ignore an instability of the last solving call
lpi | LP interface structure |
success | pointer to store, whether the instability could be ignored |
Definition at line 1496 of file lpi_clp.cpp.
References SCIP_LPi::clp, SCIP_LPi::cpxlp, errorMessage(), FALSE, SCIP_LPi::grbmodel, SCIP_LPi::instabilityignored, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::prob, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPlpiGetObjval(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, TRUE, and SCIP_LPi::xprslp.
Referenced by lpSolveStable(), and SCIPlpiGetInternalStatus().
SCIP_RETCODE SCIPlpiGetObjval | ( | SCIP_LPI * | lpi, |
SCIP_Real * | objval | ||
) |
gets objective value of solution
gets objective value of solution
lpi | LP interface structure |
objval | stores the objective value |
Definition at line 2653 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPlpiGetSol(), SCIPlpiInfinity(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by conflictAnalyzeLP(), lpiStrongbranch(), lpiStrongbranchIntegral(), lpSolve(), performStrongbranchWithPropagation(), runBoundHeuristic(), SCIPlpiGetSol(), SCIPlpiIgnoreInstability(), SCIPlpiSolveDual(), SCIPlpSolveAndEval(), and undoBdchgsDualsol().
SCIP_RETCODE SCIPlpiGetSol | ( | SCIP_LPI * | lpi, |
SCIP_Real * | objval, | ||
SCIP_Real * | primsol, | ||
SCIP_Real * | dualsol, | ||
SCIP_Real * | activity, | ||
SCIP_Real * | redcost | ||
) |
gets primal and dual solution vectors for feasible LPs
gets primal and dual solution vectors
lpi | LP interface structure |
objval | stores the objective value, may be NULL if not needed |
primsol | primal solution vector, may be NULL if not needed |
dualsol | dual solution vector, may be NULL if not needed |
activity | row activity vector, may be NULL if not needed |
redcost | reduced cost vector, may be NULL if not needed |
Definition at line 2671 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureRowMem(), ensureSidechgMem(), ensureTabMem(), errorMessage(), FEASTOL, SCIP_LPi::grbmodel, SCIP_LPi::ibas, SCIP_LPi::instabilityignored, SCIP_LPi::irhs, SCIP_LPi::irng, SCIP_LPi::isen, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_LPi::rhsarray, SCIP_LPi::rngrowmap, SCIP_ALLOC, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiGetObjval(), SCIPlpiGetPrimalRay(), SCIPmessagePrintWarning(), SCIP_LPi::senarray, SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), extendToCover(), lpLexDualSimplex(), SCIPcomputeConvexEnvelopeFacet(), SCIPlpComputeRelIntPoint(), SCIPlpGetSol(), SCIPlpGetUnboundedSol(), SCIPlpiGetObjval(), and undoBdchgsDualsol().
SCIP_RETCODE SCIPlpiGetPrimalRay | ( | SCIP_LPI * | lpi, |
SCIP_Real * | ray | ||
) |
gets primal ray for unbounded LPs
Unbounded ray (NULL returned if none/wrong). Up to user to use delete [] on these arrays.
lpi | LP interface structure |
ray | primal ray |
Definition at line 2715 of file lpi_clp.cpp.
References BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetDualfarkas(), SCIPlpiGetNCols(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpGetPrimalRay(), SCIPlpGetUnboundedSol(), and SCIPlpiGetSol().
SCIP_RETCODE SCIPlpiGetDualfarkas | ( | SCIP_LPI * | lpi, |
SCIP_Real * | dualfarkas | ||
) |
gets dual Farkas proof for infeasibility
gets dual farkas proof for infeasibility
Infeasibility ray (NULL returned if none/wrong). Up to user to use delete [] on these arrays.
lpi | LP interface structure |
dualfarkas | dual Farkas row multipliers |
Definition at line 2740 of file lpi_clp.cpp.
References BMScopyMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetIterations(), SCIPlpiGetNRows(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by getFarkasProof(), SCIPlpGetDualfarkas(), and SCIPlpiGetPrimalRay().
SCIP_RETCODE SCIPlpiGetIterations | ( | SCIP_LPI * | lpi, |
int * | iterations | ||
) |
gets the number of LP iterations of the last solve call
lpi | LP interface structure |
iterations | pointer to store the number of iterations of the last solve call |
Definition at line 2772 of file lpi_clp.cpp.
References SCIP_LPi::clp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::iterations, SCIP_LPi::itercount, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPi::previt, SCIP_LPi::prob, QS_CONDRET, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetRealSolQuality(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by conflictAnalyzeLP(), lpiStrongbranch(), lpiStrongbranchIntegral(), runBoundHeuristic(), SCIPconflictAnalyzeStrongbranch(), SCIPlpGetIterations(), and SCIPlpiGetDualfarkas().
SCIP_RETCODE SCIPlpiGetRealSolQuality | ( | SCIP_LPI * | lpi, |
SCIP_LPSOLQUALITY | qualityindicator, | ||
SCIP_Real * | quality | ||
) |
gets information about the quality of an LP solution
Such information is usually only available, if also a (maybe not optimal) solution is available. The LPI should return SCIP_INVALID for quality
, if the requested quantity is not available.
gets information about the quality of an LP solution
Such information is usually only available, if also a (maybe not optimal) solution is available. The LPI should return SCIP_INVALID for quality
, if the requested quality is not available.
lpi | LP interface structure |
qualityindicator | indicates which quality should be returned |
quality | pointer to store quality number |
Definition at line 2790 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, getRedCostEst(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, NULL, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_LPSOLQUALITY_ESTIMCONDITION, SCIP_LPSOLQUALITY_EXACTCONDITION, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetBase(), and SCIP_LPi::spx.
Referenced by checkAltLPInfeasible(), SCIP_DECL_DISPOUTPUT(), SCIPlpiGetIterations(), SCIPlpiIsStable(), and SCIPprintLPSolutionQuality().
SCIP_RETCODE SCIPlpiGetBase | ( | SCIP_LPI * | lpi, |
int * | cstat, | ||
int * | rstat | ||
) |
gets current basis status for columns and rows; arrays must be large enough to store the basis status
lpi | LP interface structure |
cstat | array to store column basis status, or NULL |
rstat | array to store row basis status, or NULL (the status is need for the row and not for the slack column) |
Definition at line 2817 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, convertstat_mosek2scip(), convertstat_mosek2scip_slack(), SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, ensureRowMem(), ensureTabMem(), errorMessage(), getbase(), getRedCostEst(), SCIP_LPi::grbmodel, SCIP_LPi::ibas, SCIP_LPi::isen, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_LPi::rngrowmap, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiSetBase(), SCIP_LPi::skc, SCIP_LPi::skx, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpLexDualSimplex(), SCIPconflictAnalyzeStrongbranch(), SCIPlpGetBase(), SCIPlpGetSol(), SCIPlpiGetRealSolQuality(), and SCIPlpiGetState().
SCIP_RETCODE SCIPlpiSetBase | ( | SCIP_LPI * | lpi, |
const int * | cstat, | ||
const int * | rstat | ||
) |
sets current basis status for columns and rows
Whats changed since last solve. Is only used when startFinishOptions used in dual or primal. Bit 1 - number of rows/columns has not changed (so work arrays valid) 2 - matrix has not changed 4 - if matrix has changed only by adding rows 8 - if matrix has changed only by adding columns 16 - row lbs not changed 32 - row ubs not changed 64 - column objective not changed 128 - column lbs not changed 256 - column ubs not changed 512 - basis not changed (up to user to set this to 0) top bits may be used internally
lpi | LP interface structure |
cstat | array with column basis status |
rstat | array with row basis status |
Definition at line 2905 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clearstate, SCIP_LPi::clp, convertstat_scip2mosek(), convertstat_scip2mosek_slack(), SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cstat, ensureCstatMem(), ensureRowMem(), ensureRstatMem(), ensureStateMem(), ensureTabMem(), EPSEQ, errorMessage(), FALSE, SCIP_LPi::grbmodel, SCIP_LPi::ibas, invalidateSolution(), SCIP_LPi::isen, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, QS_RETURN, SCIP_LPi::rngrowmap, SCIP_LPi::rstat, SCIP_ALLOC, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetBasisInd(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), setbase(), SCIP_LPi::skc, SCIP_LPi::skx, SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPconflictAnalyzeStrongbranch(), SCIPlpiClearState(), SCIPlpiGetBase(), and SCIPlpiSetState().
SCIP_RETCODE SCIPlpiGetBasisInd | ( | SCIP_LPI * | lpi, |
int * | bind | ||
) |
returns the indices of the basic columns and rows; basic column n gives value n, basic row m gives value -1-m
lpi | LP interface structure |
bind | pointer to store basis indices ready to keep number of rows entries |
Definition at line 3021 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, errorMessage(), SCIP_LPi::factorization, SCIP_LPi::grbmodel, handle_singular(), SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, restoreLPData(), SCIP_LPi::rngrowmap, SCIP_LPi::rngrows, SCIP_ALLOC, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_CALL, SCIP_CALL_QUIET, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiGetBInvRow(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPmessagePrintWarning(), setIntParam(), setParameterValues(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpiGetBInvVec(), SCIPlpGetBasisInd(), SCIPlpiGetBInvRow(), and SCIPlpiSetBase().
SCIP_RETCODE SCIPlpiGetBInvRow | ( | SCIP_LPI * | lpi, |
int | row, | ||
SCIP_Real * | coef, | ||
int * | inds, | ||
int * | ninds | ||
) |
get dense row of inverse basis matrix B^-1
get dense row of inverse basis matrix B^-1
get dense row of inverse basis matrix B^-1
get row of inverse basis matrix B^-1
get dense row of inverse basis matrix B^-1
get dense row of inverse basis matrix B^-1
lpi | LP interface structure |
row | row number |
coef | pointer to store the coefficients of the row |
inds | array to store the non-zero indices |
ninds | pointer to store the number of non-zero indices (-1: if we do not store sparsity informations) |
Definition at line 3073 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSclearMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, ensureValMem(), errorMessage(), SCIP_LPi::factorization, SCIP_LPi::grbmodel, SCIP_LPi::indarray, SCIP_LPi::lpid, lpiGetBInvVec(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_RETURN, restoreLPData(), SCIP_ALLOC, SCIP_CALL, SCIP_CALL_QUIET, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPlpiGetBasisInd(), SCIPlpiGetBInvCol(), SCIPlpiGetNRows(), SCIPmessagePrintWarning(), setIntParam(), setParameterValues(), SCIP_LPi::spx, SVECTOR, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpGetBInvRow(), SCIPlpiGetBasisInd(), and SCIPlpiGetBInvARow().
SCIP_RETCODE SCIPlpiGetBInvCol | ( | SCIP_LPI * | lpi, |
int | c, | ||
SCIP_Real * | coef, | ||
int * | inds, | ||
int * | ninds | ||
) |
get dense column of inverse basis matrix B^-1
get dense column of inverse basis matrix B^-1
get dense column of inverse basis matrix B^-1
get column of inverse basis matrix B^-1
get dense column of inverse basis matrix B^-1
get dense column of inverse basis matrix B^-1
lpi | LP interface structure |
c | column number of B^-1; this is NOT the number of the column in the LP; you have to call SCIPlpiGetBasisInd() to get the array which links the B^-1 column numbers to the row and column numbers of the LP! c must be between 0 and nrows-1, since the basis has the size nrows * nrows |
coef | pointer to store the coefficients of the column |
inds | array to store the non-zero indices |
ninds | pointer to store the number of non-zero indices (-1: if we do not store sparsity informations) |
Definition at line 3108 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSclearMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, ensureSidechgMem(), ensureValMem(), errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, SCIP_LPi::lpid, lpiGetBInvVec(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, restoreLPData(), SCIP_ALLOC, SCIP_CALL, SCIP_CALL_QUIET, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetBInvARow(), SCIPlpiGetNRows(), SCIP_LPi::senarray, setIntParam(), setParameterValues(), SCIP_LPi::spx, SVECTOR, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by lpiGetBInvVec(), SCIPlpGetBInvCol(), and SCIPlpiGetBInvRow().
SCIP_RETCODE SCIPlpiGetBInvARow | ( | SCIP_LPI * | lpi, |
int | r, | ||
const SCIP_Real * | binvrow, | ||
SCIP_Real * | coef, | ||
int * | inds, | ||
int * | ninds | ||
) |
get dense row of inverse basis matrix times constraint matrix B^-1 * A
get dense row of inverse basis matrix times constraint matrix B^-1 * A
get dense row of inverse basis matrix times constraint matrix B^-1 * A
get row of inverse basis matrix times constraint matrix B^-1 * A
get dense row of inverse basis matrix times constraint matrix B^-1 * A
get dense row of inverse basis matrix times constraint matrix B^-1 * A
lpi | LP interface structure |
r | row number |
binvrow | row in (A_B)^-1 from prior call to SCIPlpiGetBInvRow(), or NULL |
coef | vector to return coefficients |
inds | array to store the non-zero indices |
ninds | pointer to store the number of non-zero indices (-1: if we do not store sparsity informations) |
Definition at line 3146 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, ensureTabMem(), ensureValMem(), errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, SCIP_LPi::itab, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, restoreLPData(), SCIP_ALLOC, SCIP_CALL, SCIP_CALL_QUIET, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetBInvACol(), SCIPlpiGetBInvRow(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), setIntParam(), setParameterValues(), SCIP_LPi::spx, SVECTOR, SCIP_LPi::task, SCIP_LPi::valarray, and SCIP_LPi::xprslp.
Referenced by SCIPlpGetBInvARow(), and SCIPlpiGetBInvCol().
SCIP_RETCODE SCIPlpiGetBInvACol | ( | SCIP_LPI * | lpi, |
int | c, | ||
SCIP_Real * | coef, | ||
int * | inds, | ||
int * | ninds | ||
) |
get dense column of inverse basis matrix times constraint matrix B^-1 * A
get dense column of inverse basis matrix times constraint matrix B^-1 * A
get dense column of inverse basis matrix times constraint matrix B^-1 * A
get column of inverse basis matrix times constraint matrix B^-1 * A
get dense column of inverse basis matrix times constraint matrix B^-1 * A
get dense column of inverse basis matrix times constraint matrix B^-1 * A
lpi | LP interface structure |
c | column number |
coef | vector to return coefficients |
inds | array to store the non-zero indices |
ninds | pointer to store the number of non-zero indices (-1: if we do not store sparsity informations) |
Definition at line 3181 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSclearMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cpxparam, ensureSidechgMem(), ensureValMem(), errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::indarray, SCIP_LPi::lpid, lpiGetBInvVec(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, restoreLPData(), SCIP_ALLOC, SCIP_CALL, SCIP_CALL_QUIET, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNRows(), SCIPlpiGetState(), SCIP_LPi::senarray, setIntParam(), setParameterValues(), SCIP_LPi::spx, SVECTOR, SCIP_LPi::task, SCIP_LPi::valarray, and SCIP_LPi::xprslp.
Referenced by SCIPlpGetBInvACol(), and SCIPlpiGetBInvARow().
SCIP_RETCODE SCIPlpiGetState | ( | SCIP_LPI * | lpi, |
BMS_BLKMEM * | blkmem, | ||
SCIP_LPISTATE ** | lpistate | ||
) |
stores LPi state (like basis information) into lpistate object
stores LP state (like basis information) into lpistate object
lpi | LP interface structure |
blkmem | block memory |
lpistate | pointer to LPi state information (like basis information) |
Definition at line 3221 of file lpi_clp.cpp.
References BMSallocBlockMemory, CHECK_ZERO, checkState(), SCIP_LPi::clearstate, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cstat, ensureColMem(), ensureCstatMem(), ensureRowMem(), ensureRstatMem(), errorMessage(), getBase(), getbase(), SCIP_LPi::grbmodel, SCIP_LPi::iccnt, SCIP_LPi::ircnt, SCIP_LPi::lpid, lpistateCreate(), lpistatePack(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPi::nrngrows, SCIP_LPi::nrows, NULL, SCIP_LPiState::num, optimizecount, SCIP_LPi::prob, SCIP_LPi::rstat, SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiExistsDualRay(), SCIPlpiGetBase(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiSetState(), SCIP_LPi::solisbasic, SCIP_LPiState::solsta, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpGetState(), SCIPlpiGetBInvACol(), and SCIPlpStartDive().
SCIP_RETCODE SCIPlpiSetState | ( | SCIP_LPI * | lpi, |
BMS_BLKMEM * | blkmem, | ||
const SCIP_LPISTATE * | lpistate | ||
) |
loads LPi state (like basis information) into solver; note that the LP might have been extended with additional columns and rows since the state was stored with SCIPlpiGetState()
lpi | LP interface structure |
blkmem | block memory |
lpistate | LPi state information (like basis information) |
Definition at line 3261 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clearstate, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPi::cstat, ensureColMem(), ensureCstatMem(), ensureRowMem(), ensureRstatMem(), ensureStateMem(), ensureTabMem(), errorMessage(), FALSE, getbase(), SCIP_LPi::grbmodel, SCIP_LPi::ibas, SCIP_LPi::iccnt, SCIP_LPi::ircnt, SCIP_LPi::isen, lpistateUnpack(), SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::ncols, SCIP_LPiState::ncols, SCIP_LPi::nrngrows, SCIP_LPiState::nrngrows, SCIP_LPi::nrows, SCIP_LPiState::nrows, NULL, SCIP_LPiState::num, SCIP_LPiState::packcstat, SCIP_LPiState::packrstat, SCIP_LPi::prob, QS_CONDRET, QS_RETURN, REALABS, SCIP_LPi::rstat, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiClearState(), SCIPlpiGetNCols(), SCIPlpiGetNRows(), SCIPlpiIsInfinity(), SCIPlpiSetBase(), setBase(), setbase(), SCIP_LPi::skc, SCIP_LPi::skx, SCIP_LPiState::solsta, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiGetState(), and SCIPlpSetState().
SCIP_RETCODE SCIPlpiClearState | ( | SCIP_LPI * | lpi | ) |
clears current LPi state (like basis information) of the solver
lpi | LP interface structure |
Definition at line 3315 of file lpi_clp.cpp.
References BMSallocMemoryArray, BMSfreeMemoryArray, CHECK_ZERO, SCIP_LPi::clearstate, SCIP_LPi::clp, SCIP_LPi::cstat, SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, SCIP_LPi::ncols, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, SCIP_LPi::rstat, SCIP_ALLOC, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiFreeState(), SCIPlpiSetBase(), SCIPmessagePrintWarning(), SCIP_LPi::spx, TRUE, and SCIP_LPi::validFactorization.
Referenced by SCIPlpiSetState(), and SCIPtreeEndProbing().
SCIP_RETCODE SCIPlpiFreeState | ( | SCIP_LPI * | lpi, |
BMS_BLKMEM * | blkmem, | ||
SCIP_LPISTATE ** | lpistate | ||
) |
frees LPi state information
frees LP state information
lpi | LP interface structure |
blkmem | block memory |
lpistate | pointer to LPi state information (like basis information) |
Definition at line 3331 of file lpi_clp.cpp.
References SCIP_LPi::lpid, lpistateFree(), MosekEnv, NULL, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIPlpiHasStateBasis(), and SCIP_LPi::task.
Referenced by SCIPlpFreeState(), and SCIPlpiClearState().
SCIP_Bool SCIPlpiHasStateBasis | ( | SCIP_LPI * | lpi, |
SCIP_LPISTATE * | lpistate | ||
) |
checks, whether the given LPi state contains simplex basis information
checks, whether the given LP state contains simplex basis information
lpi | LP interface structure |
lpistate | LP state information (like basis information) |
Definition at line 3349 of file lpi_clp.cpp.
References errorMessageAbort(), FALSE, SCIP_LPi::lpid, MosekEnv, NULL, SCIP_LPiState::num, SCIP_LPiState::packcstat, SCIPdebugMessage, SCIPlpiReadState(), SCIP_LPi::task, and TRUE.
Referenced by SCIPlpiFreeState(), and SCIPlpSetState().
SCIP_RETCODE SCIPlpiReadState | ( | SCIP_LPI * | lpi, |
const char * | fname | ||
) |
reads LPi state (like basis information from a file
reads LP state (like basis information) from a file
reads LP state (like basis information from a file
Read a basis from the given filename, returns -1 on file error, 0 if no values, 1 if values
lpi | LP interface structure |
fname | file name |
Definition at line 3358 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, SCIP_LPERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiWriteState(), SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiHasStateBasis().
SCIP_RETCODE SCIPlpiWriteState | ( | SCIP_LPI * | lpi, |
const char * | fname | ||
) |
writes LPi state (like basis information) to a file
writes LP state (like basis information) to a file
Write the basis in MPS format to the specified file. If writeValues true, writes values of structurals (and adds VALUES to end of NAME card)
parameters:
lpi | LP interface structure |
fname | file name |
Definition at line 3375 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, QS_ERROR, SCIP_LPERROR, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_WRITEERROR, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetNorms(), SOPLEX_TRY, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by SCIPlpiReadState(), SCIPlpiSolveDual(), and SCIPlpiSolvePrimal().
SCIP_RETCODE SCIPlpiGetNorms | ( | SCIP_LPI * | lpi, |
BMS_BLKMEM * | blkmem, | ||
SCIP_LPINORMS ** | lpinorms | ||
) |
stores LPi pricing norms into lpinorms object
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
stores LPi pricing norms information
lpi | LP interface structure |
blkmem | block memory |
lpinorms | pointer to LPi pricing norms information |
Definition at line 3412 of file lpi_clp.cpp.
References BMSallocBlockMemory, BMSallocBlockMemoryArray, BMSfreeBlockMemory, BMSfreeBlockMemoryArray, CHECK_ZERO, SCIP_LPi::clearstate, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, SCIP_LPi::ncols, SCIP_LPi::nrows, NULL, SCIP_LPi::prob, QS_CONDRET, SCIP_ALLOC, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiSetNorms(), SCIP_LPi::solisbasic, and SCIP_LPi::spx.
Referenced by SCIPlpGetNorms(), and SCIPlpiWriteState().
SCIP_RETCODE SCIPlpiSetNorms | ( | SCIP_LPI * | lpi, |
BMS_BLKMEM * | blkmem, | ||
const SCIP_LPINORMS * | lpinorms | ||
) |
loads LPi pricing norms into solver; note that the LP might have been extended with additional columns and rows since the norms were stored with SCIPlpiGetNorms()
loads LPi pricing norms into solver; note that the LP might have been extended with additional columns and rows since the state was stored with SCIPlpiGetNorms()
lpi | LP interface structure |
blkmem | block memory |
lpinorms | LPi pricing norms information |
Definition at line 3428 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPiNorms::colnorm, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, SCIP_LPiNorms::cstat, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, SCIP_LPi::ncols, SCIP_LPiNorms::ncols, SCIP_LPiNorms::normlen, SCIP_LPiNorms::norms, SCIP_LPi::nrows, SCIP_LPiNorms::nrows, NULL, SCIP_LPi::prob, QS_RETURN, SCIP_LPiNorms::rownorm, SCIP_LPiNorms::rstat, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, SCIPlpiFreeNorms(), SCIPmessagePrintWarning(), and SCIP_LPi::spx.
Referenced by SCIPlpiGetNorms(), and SCIPlpSetNorms().
SCIP_RETCODE SCIPlpiFreeNorms | ( | SCIP_LPI * | lpi, |
BMS_BLKMEM * | blkmem, | ||
SCIP_LPINORMS ** | lpinorms | ||
) |
frees LPi pricing norms information
frees pricing norms information
lpi | LP interface structure |
blkmem | block memory |
lpinorms | pointer to LPi pricing norms information |
Definition at line 3441 of file lpi_clp.cpp.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArray, errorMessage(), NULL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPdebugMessage, and SCIPlpiGetIntpar().
Referenced by SCIPlpFreeNorms(), and SCIPlpiSetNorms().
SCIP_RETCODE SCIPlpiGetIntpar | ( | SCIP_LPI * | lpi, |
SCIP_LPPARAM | type, | ||
int * | ival | ||
) |
gets integer parameter of LP
gets integer parameter of LP
CPLEX supported FASTMIP in versions up to 12.6.1. FASTMIP fastens the lp solving process but therefor it might happen that there will be a loss in precision (because e.g. the optimal basis will not be factorized again).
lpi | LP interface structure |
type | parameter number |
ival | buffer to store the parameter value |
Definition at line 3466 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, CPX_INT_MAX, SCIP_LPi::cpxlp, FALSE, SCIP_LPi::fastmip, SCIP_LPi::fromscratch, getDblParam(), getIntParam(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, SCIP_LPi::notfromscratch, NULL, SCIP_LPi::par_presolve, paramty2str(), SCIP_LPi::pricing, SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rngfound, SCIP_CALL, SCIP_LPPAR_FASTMIP, SCIP_LPPAR_FROMSCRATCH, SCIP_LPPAR_LPINFO, SCIP_LPPAR_LPITLIM, SCIP_LPPAR_PRESOLVING, SCIP_LPPAR_PRICING, SCIP_LPPAR_RANDOMSEED, SCIP_LPPAR_SCALING, SCIP_LPPAR_THREADS, SCIP_LPPAR_TIMING, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PRICING_AUTO, SCIP_PRICING_DEVEX, SCIP_PRICING_FULL, SCIP_PRICING_PARTIAL, SCIP_PRICING_STEEP, SCIP_PRICING_STEEPQSTART, SCIP_Real, SCIPdebugMessage, SCIPlpiSetIntpar(), SCIP_LPi::spx, SCIP_LPi::startscratch, SCIP_LPi::task, TRUE, and SCIP_LPi::xprslp.
Referenced by lpCheckIntpar(), SCIPlpiFreeNorms(), and SCIPlpStartDive().
SCIP_RETCODE SCIPlpiSetIntpar | ( | SCIP_LPI * | lpi, |
SCIP_LPPARAM | type, | ||
int | ival | ||
) |
sets integer parameter of LP
Amount of print out: 0 - none 1 - just final 2 - just factorizations 3 - as 2 plus a bit more 4 - verbose above that 8,16,32 etc just for selective SCIPdebug
lpi | LP interface structure |
type | parameter number |
ival | parameter value |
Definition at line 3510 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, CPX_INT_MAX, SCIP_LPi::cpxlp, FALSE, SCIP_LPi::fromscratch, SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MIN, MOSEK_CALL, MosekEnv, SCIP_LPi::notfromscratch, NULL, SCIP_LPi::par_presolve, paramty2str(), SCIP_LPi::pricing, SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rngfound, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_LPERROR, SCIP_LPPAR_FASTMIP, SCIP_LPPAR_FROMSCRATCH, SCIP_LPPAR_LPINFO, SCIP_LPPAR_LPITLIM, SCIP_LPPAR_POLISHING, SCIP_LPPAR_PRESOLVING, SCIP_LPPAR_PRICING, SCIP_LPPAR_RANDOMSEED, SCIP_LPPAR_SCALING, SCIP_LPPAR_THREADS, SCIP_LPPAR_TIMING, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PRICING_AUTO, SCIP_PRICING_DEVEX, SCIP_PRICING_FULL, SCIP_PRICING_LPIDEFAULT, SCIP_PRICING_PARTIAL, SCIP_PRICING_STEEP, SCIP_PRICING_STEEPQSTART, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetRealpar(), setDblParam(), setFastmipClpParameters(), setIntParam(), SCIP_LPi::spx, SCIP_LPi::startscratch, SCIP_LPi::task, TRUE, unsetFastmipClpParameters(), and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), checkAltLPInfeasible(), conflictAnalyzeLP(), extendToCover(), initAlternativeLP(), lpSetIntpar(), runBoundHeuristic(), SCIP_DECL_CONSCHECK(), SCIPlpComputeRelIntPoint(), SCIPlpiAddRows(), SCIPlpiCreate(), and SCIPlpiGetIntpar().
SCIP_RETCODE SCIPlpiGetRealpar | ( | SCIP_LPI * | lpi, |
SCIP_LPPARAM | type, | ||
SCIP_Real * | dval | ||
) |
gets floating point parameter of LP
lpi | LP interface structure |
type | parameter number |
dval | buffer to store the parameter value |
Definition at line 3612 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::conditionlimit, SCIP_LPi::cpxlp, getDblParam(), SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, paramty2str(), SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rowrepswitch, SCIP_CALL, SCIP_LPPAR_BARRIERCONVTOL, SCIP_LPPAR_CONDITIONLIMIT, SCIP_LPPAR_DUALFEASTOL, SCIP_LPPAR_FEASTOL, SCIP_LPPAR_LOBJLIM, SCIP_LPPAR_LPTILIM, SCIP_LPPAR_MARKOWITZ, SCIP_LPPAR_ROWREPSWITCH, SCIP_LPPAR_UOBJLIM, SCIP_OBJSEN_MAXIMIZE, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIPdebugMessage, SCIPlpiGetObjsen(), SCIPlpiInfinity(), SCIPlpiSetRealpar(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by conflictAnalyzeLP(), lpCheckRealpar(), and SCIPlpiSetIntpar().
SCIP_RETCODE SCIPlpiSetRealpar | ( | SCIP_LPI * | lpi, |
SCIP_LPPARAM | type, | ||
SCIP_Real | dval | ||
) |
sets floating point parameter of LP
lpi | LP interface structure |
type | parameter number |
dval | parameter value |
Definition at line 3658 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::checkcondition, SCIP_LPi::clp, SCIP_LPi::conditionlimit, SCIP_LPi::cpxlp, SCIP_LPi::feastol, SCIP_LPi::grbmodel, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, paramty2str(), SCIP_LPi::prob, QS_RETURN, SCIP_LPi::rowrepswitch, SCIP_CALL, SCIP_LPPAR_BARRIERCONVTOL, SCIP_LPPAR_CONDITIONLIMIT, SCIP_LPPAR_DUALFEASTOL, SCIP_LPPAR_FEASTOL, SCIP_LPPAR_LOBJLIM, SCIP_LPPAR_LPTILIM, SCIP_LPPAR_MARKOWITZ, SCIP_LPPAR_ROWREPSWITCH, SCIP_LPPAR_UOBJLIM, SCIP_OBJSEN_MAXIMIZE, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_Real, SCIPdebugMessage, SCIPlpiGetObjsen(), SCIPlpiInfinity(), setDblParam(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by addConcaveEstimatorMultivariate(), conflictAnalyzeLP(), lpSetRealpar(), runBoundHeuristic(), SCIPlpComputeRelIntPoint(), and SCIPlpiGetRealpar().
returns value treated as infinity in the LP solver
lpi | LP interface structure |
Definition at line 3715 of file lpi_clp.cpp.
References infinity, LPIINFINITY, MosekEnv, NULL, SCIP_Bool, SCIP_Real, SCIPdebugMessage, SCIPlpiIsInfinity(), SCIP_LPi::spx, and SCIP_LPi::task.
Referenced by addAltLPColumn(), addBdchg(), addConcaveEstimatorMultivariate(), conflictAnalyzeLP(), lpAlgorithm(), lpFlushAddCols(), lpFlushAddRows(), lpFlushChgCols(), lpFlushChgRows(), lpSetUobjlim(), runBoundHeuristic(), SCIP_DECL_PARAMCHGD(), SCIPlpComputeRelIntPoint(), SCIPlpCreate(), SCIPlpiCreate(), SCIPlpiGetObjval(), SCIPlpiGetRealpar(), SCIPlpiSetRealpar(), SCIPlpMarkFlushed(), SCIPlpSolveAndEval(), solveNodeLP(), unfixAltLPVariable(), unfixAltLPVariables(), and updateLazyBounds().
checks if given value is treated as infinity in the LP solver
lpi | LP interface structure |
val | value to be checked for infinity |
Definition at line 3726 of file lpi_clp.cpp.
References FALSE, fileExists(), infinity, IS_POSINF, LPIINFINITY, MosekEnv, NULL, SCIP_Bool, SCIPdebugMessage, SCIP_LPi::spx, SCIP_LPi::task, and TRUE.
Referenced by addBdchg(), checkLPBoundsClean(), performStrongbranchWithPropagation(), SCIPlpiChgBounds(), SCIPlpiInfinity(), and SCIPlpiSetState().
SCIP_RETCODE SCIPlpiReadLP | ( | SCIP_LPI * | lpi, |
const char * | fname | ||
) |
reads LP from a file
read file in MPS format parameters: filename bool keepNames bool ignoreErrors
lpi | LP interface structure |
fname | file name |
Definition at line 3766 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), fileExists(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::previt, SCIP_LPi::prob, SCIP_NOFILE, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiWriteLP(), SCIPmessagePrintWarning(), SCIP_LPi::solstat, SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by fileExists().
SCIP_RETCODE SCIPlpiWriteLP | ( | SCIP_LPI * | lpi, |
const char * | fname | ||
) |
writes LP to a file
write file in MPS format parameters: filename int formatType (0 - normal, 1 - extra accuracy, 2 - IEEE hex) int numberAcross (1 or 2 values should be specified on every data line in the MPS file) double objSense
lpi | LP interface structure |
fname | file name |
Definition at line 3794 of file lpi_clp.cpp.
References CHECK_ZERO, SCIP_LPi::clp, SCIP_LPi::cpxenv, SCIP_LPi::cpxlp, errorMessage(), SCIP_LPi::grbmodel, SCIP_LPi::lpid, SCIP_LPi::messagehdlr, MOSEK_CALL, MosekEnv, NULL, SCIP_LPi::prob, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIP_WRITEERROR, SCIPdebugMessage, SCIPerrorMessage, SCIPmessagePrintWarning(), SCIP_LPi::spx, SCIP_LPi::task, and SCIP_LPi::xprslp.
Referenced by addAltLPColumn(), SCIP_DECL_PARAMCHGD(), SCIPlpComputeRelIntPoint(), SCIPlpiReadLP(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpWrite(), and updateObjUpperbound().