lpi_spx2.cpp File Reference Detailed DescriptionLP interface for SoPlex version 2.0 and higher. This is an implementation of SCIP's LP interface for SoPlex using the extended and improved interface of SoPlex 2.0 For debugging purposes, the SoPlex results can be double checked with CPLEX if WITH_LPSCHECK is defined. This may yield false positives, since the LP is dumped to a file for transfering it to CPLEX, hence, precision may be lost. Definition in file lpi_spx2.cpp. #include "soplex.h" #include "spxgithash.h" #include "scip/pub_message.h" #include <cassert> #include "lpi/lpi.h" #include "scip/bitencode.h" Go to the source code of this file.
Macro Definition Documentation
if defined then in SCIPlpiStrongbranch() we restore the basis after the down branch and after the up branch; if false only after the end of a strong branching phase, which however seems to mostly increase strong branching time and iterations Definition at line 30 of file lpi_spx2.cpp.
Value:
if( !x ) \ { \ SCIPmessagePrintWarning(_messagehdlr, "SoPlex: unsupported parameter value\n"); \ } Definition at line 68 of file lpi_spx2.cpp.
Definition at line 85 of file lpi_spx2.cpp. Referenced by SCIPlpiGetSolverName().
verbosity level for LPINFO Definition at line 102 of file lpi_spx2.cpp. Referenced by lpiStrongbranch(), SCIPlpiCreate(), and spxSolve().
Definition at line 112 of file lpi_spx2.cpp. Referenced by ensureCstatMem(), ensureRstatMem(), fileExists(), lpistateCreate(), lpistateFree(), lpistatePack(), lpistateUnpack(), lpiStrongbranch(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgCoef(), SCIPlpiChgObj(), SCIPlpiChgObjsen(), SCIPlpiChgSides(), SCIPlpiClear(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiExistsDualRay(), SCIPlpiExistsPrimalRay(), SCIPlpiFree(), SCIPlpiFreeNorms(), SCIPlpiFreeState(), SCIPlpiGetBase(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetBounds(), SCIPlpiGetCoef(), SCIPlpiGetColNames(), SCIPlpiGetCols(), SCIPlpiGetDualfarkas(), SCIPlpiGetInternalStatus(), SCIPlpiGetIntpar(), SCIPlpiGetIterations(), SCIPlpiGetNCols(), SCIPlpiGetNNonz(), SCIPlpiGetNorms(), SCIPlpiGetNRows(), SCIPlpiGetObj(), SCIPlpiGetObjsen(), SCIPlpiGetObjval(), SCIPlpiGetPrimalRay(), SCIPlpiGetRealpar(), SCIPlpiGetRealSolQuality(), SCIPlpiGetRowNames(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpiGetSol(), SCIPlpiGetSolFeasibility(), SCIPlpiGetState(), SCIPlpiHasDualRay(), SCIPlpiHasPrimalRay(), SCIPlpiIgnoreInstability(), SCIPlpiIsDualFeasible(), SCIPlpiIsDualInfeasible(), SCIPlpiIsDualUnbounded(), SCIPlpiIsIterlimExc(), SCIPlpiIsObjlimExc(), SCIPlpiIsOptimal(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsPrimalInfeasible(), SCIPlpiIsPrimalUnbounded(), SCIPlpiIsStable(), SCIPlpiIsTimelimExc(), SCIPlpiLoadColLP(), SCIPlpiReadLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSetIntpar(), SCIPlpiSetNorms(), SCIPlpiSetRealpar(), SCIPlpiSetState(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiStrongbranchesFrac(), SCIPlpiStrongbranchesInt(), SCIPlpiWasSolved(), SCIPlpiWriteLP(), and spxSolve().
Value:
do \ { \ try \ { \ (x); \ } \ catch(const SPxException& E) \ { \ std::string s = E.what(); \ SCIPmessagePrintWarning((messagehdlr), "SoPlex threw an exception: %s\n", s.c_str()); \ return SCIP_LPERROR; \ } \ } \ while( FALSE )
Definition: type_retcode.h:40 Macro for a single SoPlex call for which exceptions have to be catched - return an LP error. We make no distinction between different exception types, e.g., between memory allocation and other exceptions. Definition at line 123 of file lpi_spx2.cpp. Referenced by SCIPlpiChgCoef(), SCIPlpiChgObjsen(), SCIPlpiClear(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiReadState(), SCIPlpiSetBase(), and SCIPlpiWriteState().
Value:
do \ { \ try \ { \ (x); \ } \ catch(const SPxException& E) \ { \ std::string s = E.what(); \ SCIPerrorMessage("SoPlex threw an exception: %s\n", s.c_str()); \ abort(); \ } \ } \ while( FALSE )
Definition at line 156 of file lpi_spx2.cpp.
Definition at line 685 of file lpi_spx2.cpp. Referenced by colpacketNum().
Definition at line 687 of file lpi_spx2.cpp. Referenced by rowpacketNum(). Typedef Documentation
Definition at line 684 of file lpi_spx2.cpp.
Definition at line 686 of file lpi_spx2.cpp. Function Documentation
resizes cstat array to have at least num entries
Definition at line 731 of file lpi_spx2.cpp. References BMSreallocMemoryArray, SCIP_LPi::cstat, SCIP_LPi::cstatsize, ensureRstatMem(), MAX, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPlpiGetState(), and SCIPlpiSetState().
resizes rstat array to have at least num entries
Definition at line 753 of file lpi_spx2.cpp. References BMSreallocMemoryArray, colpacketNum(), MAX, NULL, SCIP_LPi::rstat, SCIP_LPi::rstatsize, SCIP_ALLOC, and SCIP_OKAY. Referenced by ensureCstatMem(), SCIPlpiGetState(), and SCIPlpiSetState().
returns the number of packets needed to store column packet information
Definition at line 782 of file lpi_spx2.cpp. References COLS_PER_PACKET, and rowpacketNum(). Referenced by ensureRstatMem(), lpistateCreate(), and lpistateFree().
returns the number of packets needed to store row packet information
Definition at line 791 of file lpi_spx2.cpp. References lpistatePack(), and ROWS_PER_PACKET. Referenced by colpacketNum(), lpistateCreate(), and lpistateFree().
store row and column basis status in a packed LPi state object
Definition at line 800 of file lpi_spx2.cpp. References lpistateUnpack(), SCIP_LPiState::ncols, SCIP_LPiState::nrows, NULL, SCIP_LPiState::packcstat, SCIP_LPiState::packrstat, and SCIPencodeDualBit(). Referenced by rowpacketNum(), and SCIPlpiGetState().
unpacks row and column basis status from a packed LPi state object
Definition at line 816 of file lpi_spx2.cpp. References lpistateCreate(), SCIP_LPiState::ncols, SCIP_LPiState::nrows, NULL, SCIP_LPiState::packcstat, SCIP_LPiState::packrstat, and SCIPdecodeDualBit(). Referenced by lpistatePack(), and SCIPlpiSetState().
creates LPi state information object
Definition at line 832 of file lpi_spx2.cpp. References BMSallocBlockMemory, BMSallocBlockMemoryArray, colpacketNum(), lpistateFree(), NULL, rowpacketNum(), SCIP_ALLOC, and SCIP_OKAY. Referenced by lpistateUnpack(), and SCIPlpiGetState().
frees LPi state information
Definition at line 856 of file lpi_spx2.cpp. References BMSfreeBlockMemory, BMSfreeBlockMemoryArray, colpacketNum(), invalidateSolution(), NULL, and rowpacketNum(). Referenced by lpistateCreate(), and SCIPlpiFreeState().
marks the current LP to be unsolved Definition at line 883 of file lpi_spx2.cpp. Referenced by lpistateFree(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgCoef(), SCIPlpiChgObj(), SCIPlpiChgObjsen(), SCIPlpiChgSides(), SCIPlpiClear(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), and spxSolve().
gets name and version of LP solver Definition at line 907 of file lpi_spx2.cpp. References SCIPdebugMessage, SCIPlpiGetSolverDesc(), SOPLEX_SUBVERSION, and spxname.
gets description of LP solver (developer, webpage, ...) Definition at line 922 of file lpi_spx2.cpp. References SCIPlpiGetSolverPointer(), and spxdesc. Referenced by SCIPlpiGetSolverName().
gets pointer for LP solver - use only with great care
Definition at line 935 of file lpi_spx2.cpp. References SCIPlpiCreate(), and SCIP_LPi::spx. Referenced by SCIPlpiGetSolverDesc().
creates an LP problem object
Definition at line 954 of file lpi_spx2.cpp. References BMSallocMemory, BMSallocMemoryCPP, FALSE, invalidateSolution(), NULL, SCIP_ALLOC, SCIP_CALL, SCIP_LPPAR_PRICING, SCIP_OKAY, SCIP_PRICING_LPIDEFAULT, SCIPlpiChgObjsen(), SCIPlpiFree(), SCIPlpiSetIntpar(), SOPLEX_TRY, and SOPLEX_VERBLEVEL. Referenced by SCIPlpiGetSolverPointer().
deletes an LP problem object
Definition at line 1001 of file lpi_spx2.cpp. References BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, SCIP_OKAY, and SCIPlpiLoadColLP(). Referenced by SCIPlpiCreate().
copies LP data with column matrix into LP solver
Definition at line 1034 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_CALL, SCIP_LPERROR, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIPdebugMessage, SCIPlpiAddCols(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiFree().
adds columns to the LP
Definition at line 1095 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiDelCols(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiLoadColLP().
deletes all columns in the given range from LP
Definition at line 1159 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiDelColset(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiAddCols().
deletes columns from SCIP_LP; the new position of a column must not be greater that its old position
Definition at line 1181 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiAddRows(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiDelCols().
adds rows to the LP
Definition at line 1212 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiDelRows(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiDelColset().
deletes all rows in the given range from LP
Definition at line 1274 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiDelRowset(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiAddRows().
deletes rows from SCIP_LP; the new position of a row must not be greater that its old position
Definition at line 1296 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiClear(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiDelRows().
clears the whole LP
Definition at line 1327 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgBounds(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiDelRowset().
changes lower and upper bounds of columns
Definition at line 1345 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgSides(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiClear().
changes left and right hand sides of rows
Definition at line 1389 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgCoef(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiChgBounds().
changes a single coefficient
Definition at line 1433 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgObjsen(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiChgSides().
changes the objective sense
Definition at line 1457 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIPdebugMessage, SCIPlpiChgObj(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiChgCoef(), and SCIPlpiCreate().
changes objective values of columns in the LP
Definition at line 1477 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiScaleRow(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiChgObjsen().
multiplies a row with a non-zero scalar; for negative scalars, the row's sense is switched accordingly
Definition at line 1518 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiScaleCol(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiChgObj().
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
Definition at line 1585 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiGetNRows(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiScaleRow().
gets the number of rows in the LP
Definition at line 1667 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetNCols(), and SCIP_LPi::spx. Referenced by SCIPlpiScaleCol().
gets the number of columns in the LP
Definition at line 1684 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetNNonz(), and SCIP_LPi::spx. Referenced by SCIPlpiGetNRows().
gets the number of nonzero elements in the LP constraint matrix
Definition at line 1701 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetCols(), and SCIP_LPi::spx. Referenced by SCIPlpiGetNCols().
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.
Definition at line 1734 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetRows(), and SCIP_LPi::spx. Referenced by SCIPlpiGetNNonz().
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.
Definition at line 1799 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetColNames(), and SCIP_LPi::spx. Referenced by SCIPlpiGetCols().
gets column names
Definition at line 1861 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetRowNames(), and SCIP_LPi::spx. Referenced by SCIPlpiGetRows().
gets row names
Definition at line 1887 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetObjsen(), and SCIP_LPi::spx. Referenced by SCIPlpiGetColNames().
gets objective sense of the LP
Definition at line 1913 of file lpi_spx2.cpp. References NULL, SCIP_OBJSEN_MAXIMIZE, SCIP_OBJSEN_MINIMIZE, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetObj(), and SCIP_LPi::spx. Referenced by SCIPlpiGetRowNames().
gets objective coefficients from LP problem object
Definition at line 1930 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetBounds(), and SCIP_LPi::spx. Referenced by SCIPlpiGetObjsen().
gets current bounds from LP problem object
Definition at line 1953 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetSides(), and SCIP_LPi::spx. Referenced by SCIPlpiGetObj().
gets current row sides from LP problem object
Definition at line 1981 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetCoef(), and SCIP_LPi::spx. Referenced by SCIPlpiGetBounds().
gets a single coefficient
Definition at line 2009 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_LPi::spx, and spxSolve(). Referenced by SCIPlpiGetSides().
solves LP – used for both, primal and dual simplex, because SoPlex doesn't distinct the two cases
Definition at line 2043 of file lpi_spx2.cpp. References invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiSolvePrimal(), SCIPmessagePrintWarning(), SCIP_LPi::solved, SOPLEX_VERBLEVEL, SCIP_LPi::spx, TRUE, and UNKNOWN. Referenced by SCIPlpiGetCoef(), SCIPlpiSolveDual(), and SCIPlpiSolvePrimal().
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
Definition at line 2109 of file lpi_spx2.cpp. References NULL, SCIPdebugMessage, SCIPlpiSolveDual(), SCIP_LPi::spx, and spxSolve(). Referenced by spxSolve().
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
Definition at line 2123 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiSolveBarrier(), SCIP_LPi::spx, and spxSolve(). Referenced by SCIPlpiSolveBarrier(), and SCIPlpiSolvePrimal().
calls barrier or interior point algorithm to solve the LP with crossover to simplex basis
Definition at line 2137 of file lpi_spx2.cpp. References SCIPdebugMessage, SCIPlpiSolveDual(), and SCIPlpiStartStrongbranch(). Referenced by SCIPlpiSolveDual().
start strong branching - call before any strongbranching
Definition at line 2149 of file lpi_spx2.cpp. References SCIP_OKAY, SCIPlpiEndStrongbranch(), and SCIP_LPi::spx. Referenced by SCIPlpiSolveBarrier().
end strong branching - call after any strongbranching
Definition at line 2160 of file lpi_spx2.cpp. References lpiStrongbranch(), SCIP_OKAY, and SCIP_LPi::spx. Referenced by SCIPlpiStartStrongbranch().
performs strong branching iterations on one arbitrary candidate
Definition at line 2173 of file lpi_spx2.cpp. References EPSCEIL, EPSFLOOR, FALSE, NULL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiStrongbranchFrac(), SOPLEX_VERBLEVEL, SCIP_LPi::spx, TRUE, and UNKNOWN. Referenced by SCIPlpiEndStrongbranch(), SCIPlpiStrongbranchesFrac(), SCIPlpiStrongbranchesInt(), SCIPlpiStrongbranchFrac(), and SCIPlpiStrongbranchInt().
performs strong branching iterations on one fractional candidate
Definition at line 2404 of file lpi_spx2.cpp. References lpiStrongbranch(), SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, and SCIPlpiStrongbranchesFrac(). Referenced by lpiStrongbranch().
performs strong branching iterations on given fractional candidates
Definition at line 2434 of file lpi_spx2.cpp. References lpiStrongbranch(), NULL, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, and SCIPlpiStrongbranchInt(). Referenced by SCIPlpiStrongbranchFrac().
performs strong branching iterations on one candidate with integral value
Definition at line 2478 of file lpi_spx2.cpp. References lpiStrongbranch(), SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, and SCIPlpiStrongbranchesInt(). Referenced by SCIPlpiStrongbranchesFrac().
performs strong branching iterations on given candidates with integral values
Definition at line 2508 of file lpi_spx2.cpp. References lpiStrongbranch(), NULL, SCIP_Bool, SCIP_CALL, SCIP_LPERROR, SCIP_OKAY, and SCIPlpiWasSolved(). Referenced by SCIPlpiStrongbranchInt(). returns whether a solve method was called after the last modification of the LP
Definition at line 2564 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPlpiGetSolFeasibility(), and SCIP_LPi::solved. Referenced by SCIPlpiStrongbranchesInt().
gets information about primal and dual feasibility of the current LP solution
Definition at line 2574 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIPlpiExistsPrimalRay(), SCIPlpiIsDualFeasible(), and SCIPlpiIsPrimalFeasible(). Referenced by 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
Definition at line 2595 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiHasPrimalRay(), and SCIP_LPi::spx. Referenced by SCIPlpiGetSolFeasibility(). 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
Definition at line 2610 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsPrimalUnbounded(), and SCIP_LPi::spx. Referenced by SCIPlpiExistsPrimalRay(). returns TRUE iff LP is proven to be primal unbounded
Definition at line 2623 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsPrimalInfeasible(), and SCIP_LPi::spx. Referenced by SCIPlpiHasPrimalRay(). returns TRUE iff LP is proven to be primal infeasible
Definition at line 2641 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsPrimalFeasible(), and SCIP_LPi::spx. Referenced by SCIPlpiIsPrimalUnbounded(). returns TRUE iff LP is proven to be primal feasible
Definition at line 2654 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiExistsDualRay(), and SCIP_LPi::spx. Referenced by 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
Definition at line 2678 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiHasDualRay(), and SCIP_LPi::spx. Referenced by SCIPlpiIsPrimalFeasible(). 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
Definition at line 2693 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsDualUnbounded(), and SCIP_LPi::spx. Referenced by SCIPlpiExistsDualRay(). returns TRUE iff LP is dual unbounded
Definition at line 2706 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsDualInfeasible(), and SCIP_LPi::spx. Referenced by SCIPlpiHasDualRay(). returns TRUE iff LP is dual infeasible
Definition at line 2719 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsDualFeasible(), and SCIP_LPi::spx. Referenced by SCIPlpiIsDualUnbounded(). returns TRUE iff LP is proven to be dual feasible
Definition at line 2732 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsOptimal(), and SCIP_LPi::spx. Referenced by SCIPlpiGetSolFeasibility(), SCIPlpiIsDualInfeasible(), and SCIPlpiIsOptimal(). returns TRUE iff LP was solved to optimality
Definition at line 2750 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsDualFeasible(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsStable(), and SCIP_LPi::spx. Referenced by SCIPlpiIsDualFeasible(), and SCIPlpiIsStable(). returns TRUE iff current LP basis is stable
Definition at line 2767 of file lpi_spx2.cpp. References SCIP_LPi::checkcondition, SCIP_LPi::conditionlimit, FALSE, NULL, SCIP_Bool, SCIP_INVALID, SCIP_LPSOLQUALITY_ESTIMCONDITION, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPdebugMessage, SCIPlpiGetRealSolQuality(), SCIPlpiIsObjlimExc(), SCIPlpiIsOptimal(), SCIP_LPi::spx, and TRUE. Referenced by SCIPlpiIsOptimal(). returns TRUE iff the objective limit was reached
Definition at line 2802 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsIterlimExc(), and SCIP_LPi::spx. Referenced by SCIPlpiIsStable(). returns TRUE iff the iteration limit was reached
Definition at line 2815 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIsTimelimExc(), and SCIP_LPi::spx. Referenced by SCIPlpiIsObjlimExc(). returns TRUE iff the time limit was reached
Definition at line 2828 of file lpi_spx2.cpp. References NULL, SCIPdebugMessage, SCIPlpiGetInternalStatus(), and SCIP_LPi::spx. Referenced by SCIPlpiIsIterlimExc().
returns the internal solution status of the solver
Definition at line 2841 of file lpi_spx2.cpp. References NULL, SCIP_Bool, SCIPdebugMessage, SCIPlpiIgnoreInstability(), and SCIP_LPi::spx. Referenced by SCIPlpiIsTimelimExc().
tries to reset the internal status of the LP solver in order to ignore an instability of the last solving call
Definition at line 2854 of file lpi_spx2.cpp. References FALSE, NULL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiGetObjval(), and SCIP_LPi::spx. Referenced by SCIPlpiGetInternalStatus().
gets objective value of solution
Definition at line 2871 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiGetSol(), and SCIP_LPi::spx. Referenced by SCIPlpiIgnoreInstability().
gets primal and dual solution vectors
Definition at line 2888 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiGetPrimalRay(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiGetObjval().
gets primal ray for unbounded LPs Unbounded ray (NULL returned if none/wrong). Up to user to use delete [] on these arrays.
Definition at line 2941 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiGetDualfarkas(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiGetSol().
gets dual farkas proof for infeasibility Infeasibility ray (NULL returned if none/wrong). Up to user to use delete [] on these arrays.
Definition at line 2969 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetIterations(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiGetPrimalRay().
gets the number of LP iterations of the last solve call
Definition at line 2997 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetRealSolQuality(), and SCIP_LPi::spx. Referenced by SCIPlpiGetDualfarkas().
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
Definition at line 3017 of file lpi_spx2.cpp. References NULL, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_LPSOLQUALITY_ESTIMCONDITION, SCIP_LPSOLQUALITY_EXACTCONDITION, SCIP_OKAY, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetBase(), and SCIP_LPi::spx. Referenced by SCIPlpiGetIterations(), and SCIPlpiIsStable().
gets current basis status for columns and rows; arrays must be large enough to store the basis status
Definition at line 3073 of file lpi_spx2.cpp. References NULL, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_INVALIDDATA, SCIP_LPERROR, SCIP_OKAY, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiSetBase(), and SCIP_LPi::spx. Referenced by SCIPlpiGetRealSolQuality(), and SCIPlpiGetState().
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
Definition at line 3162 of file lpi_spx2.cpp. References BMSallocMemoryArray, BMSfreeMemoryArrayNull, invalidateSolution(), SCIP_LPi::messagehdlr, NULL, SCIP_ALLOC, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_INVALIDDATA, SCIP_LPERROR, SCIP_OKAY, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPlpiGetBasisInd(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiGetBase(), and SCIPlpiSetState().
returns the indices of the basic columns and rows; basic column n gives value n, basic row m gives value -1-m
Definition at line 3248 of file lpi_spx2.cpp. References NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetBInvRow(), and SCIP_LPi::spx. Referenced by SCIPlpiSetBase().
get dense row of inverse basis matrix B^-1
Definition at line 3272 of file lpi_spx2.cpp. References NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetBInvCol(), and SCIP_LPi::spx. Referenced by SCIPlpiGetBasisInd(), and SCIPlpiGetBInvARow().
get dense column of inverse basis matrix B^-1
Definition at line 3302 of file lpi_spx2.cpp. References NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetBInvARow(), and SCIP_LPi::spx. Referenced by SCIPlpiGetBInvRow().
get dense row of inverse basis matrix times constraint matrix B^-1 * A
Definition at line 3333 of file lpi_spx2.cpp. References BMSallocMemoryArray, BMSfreeMemoryArrayNull, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiGetBInvACol(), SCIPlpiGetBInvRow(), and SCIP_LPi::spx. Referenced by SCIPlpiGetBInvCol().
get dense column of inverse basis matrix times constraint matrix B^-1 * A
Definition at line 3393 of file lpi_spx2.cpp. References NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetState(), and SCIP_LPi::spx. Referenced by SCIPlpiGetBInvARow().
stores LPi state (like basis information) into lpistate object
Definition at line 3444 of file lpi_spx2.cpp. References SCIP_LPi::cstat, ensureCstatMem(), ensureRstatMem(), lpistateCreate(), lpistatePack(), NULL, SCIP_LPi::rstat, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetBase(), SCIPlpiSetState(), and SCIP_LPi::spx. Referenced by SCIPlpiGetBInvACol().
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()
Definition at line 3488 of file lpi_spx2.cpp. References SCIP_LPi::cstat, ensureCstatMem(), ensureRstatMem(), lpistateUnpack(), SCIP_LPiState::ncols, SCIP_LPiState::nrows, NULL, REALABS, SCIP_LPi::rstat, SCIP_BASESTAT_BASIC, SCIP_BASESTAT_LOWER, SCIP_BASESTAT_UPPER, SCIP_BASESTAT_ZERO, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPlpiClearState(), SCIPlpiIsInfinity(), SCIPlpiSetBase(), and SCIP_LPi::spx. Referenced by SCIPlpiGetState().
clears current LPi state (like basis information) of the solver
Definition at line 3547 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, NULL, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiFreeState(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiSetState().
frees LPi state information
Definition at line 3574 of file lpi_spx2.cpp. References lpistateFree(), NULL, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, and SCIPlpiHasStateBasis(). Referenced by SCIPlpiClearState().
checks, whether the given LP state contains simplex basis information
Definition at line 3592 of file lpi_spx2.cpp. References SCIPlpiReadState(), and TRUE. Referenced by SCIPlpiFreeState().
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
Definition at line 3601 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiWriteState(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiHasStateBasis().
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:
Definition at line 3617 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, SCIP_LPERROR, SCIP_OKAY, SCIPdebugMessage, SCIPlpiGetNorms(), SOPLEX_TRY, and SCIP_LPi::spx. Referenced by SCIPlpiReadState().
stores LPi pricing norms information
Definition at line 3650 of file lpi_spx2.cpp. References BMSallocBlockMemory, BMSallocBlockMemoryArray, BMSfreeBlockMemory, BMSfreeBlockMemoryArray, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIPlpiSetNorms(), and SCIP_LPi::spx. Referenced by SCIPlpiWriteState().
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()
Definition at line 3705 of file lpi_spx2.cpp. References SCIP_LPiNorms::ncols, SCIP_LPiNorms::norms, SCIP_LPiNorms::nrows, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPlpiFreeNorms(), and SCIP_LPi::spx. Referenced by SCIPlpiGetNorms().
frees pricing norms information
Definition at line 3736 of file lpi_spx2.cpp. References BMSfreeBlockMemory, BMSfreeBlockMemoryArray, NULL, SCIP_OKAY, SCIPdebugMessage, and SCIPlpiGetIntpar(). Referenced by SCIPlpiSetNorms().
gets integer parameter of LP
Definition at line 3769 of file lpi_spx2.cpp. References NULL, SCIP_LPi::pricing, SCIP_LPPAR_FROMSCRATCH, SCIP_LPPAR_LPINFO, SCIP_LPPAR_LPITLIM, SCIP_LPPAR_PRESOLVING, SCIP_LPPAR_PRICING, SCIP_LPPAR_SCALING, SCIP_LPPAR_TIMING, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIPdebugMessage, SCIPlpiSetIntpar(), and SCIP_LPi::spx. Referenced by SCIPlpiFreeNorms().
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
Definition at line 3814 of file lpi_spx2.cpp. References FALSE, NULL, SCIP_LPi::pricing, SCIP_LPERROR, SCIP_LPPAR_FROMSCRATCH, SCIP_LPPAR_LPINFO, SCIP_LPPAR_LPITLIM, SCIP_LPPAR_PRESOLVING, SCIP_LPPAR_PRICING, SCIP_LPPAR_SCALING, 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, SCIPdebugMessage, SCIPlpiGetRealpar(), SCIP_LPi::spx, and TRUE. Referenced by SCIPlpiCreate(), and SCIPlpiGetIntpar().
gets floating point parameter of LP
Definition at line 3888 of file lpi_spx2.cpp. References SCIP_LPi::conditionlimit, NULL, SCIP_LPPAR_CONDITIONLIMIT, SCIP_LPPAR_DUALFEASTOL, SCIP_LPPAR_FEASTOL, SCIP_LPPAR_LOBJLIM, SCIP_LPPAR_LPTILIM, SCIP_LPPAR_ROWREPSWITCH, SCIP_LPPAR_UOBJLIM, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIPdebugMessage, SCIPlpiInfinity(), SCIPlpiSetRealpar(), and SCIP_LPi::spx. Referenced by SCIPlpiSetIntpar().
sets floating point parameter of LP
Definition at line 3933 of file lpi_spx2.cpp. References SCIP_LPi::checkcondition, SCIP_LPi::conditionlimit, NULL, SCIP_LPPAR_CONDITIONLIMIT, SCIP_LPPAR_DUALFEASTOL, SCIP_LPPAR_FEASTOL, SCIP_LPPAR_LOBJLIM, SCIP_LPPAR_LPTILIM, SCIP_LPPAR_ROWREPSWITCH, SCIP_LPPAR_UOBJLIM, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_Real, SCIPdebugMessage, SCIPlpiInfinity(), and SCIP_LPi::spx. Referenced by SCIPlpiGetRealpar(). returns value treated as infinity in the LP solver
Definition at line 3992 of file lpi_spx2.cpp. References SCIP_Bool, SCIP_Real, SCIPdebugMessage, SCIPlpiIsInfinity(), and SCIP_LPi::spx. Referenced by SCIPlpiGetRealpar(), and SCIPlpiSetRealpar(). checks if given value is treated as infinity in the LP solver
Definition at line 4002 of file lpi_spx2.cpp. References fileExists(), SCIP_Bool, SCIPdebugMessage, and SCIP_LPi::spx. Referenced by SCIPlpiInfinity(), and SCIPlpiSetState().
returns, whether the given file exists
Definition at line 4026 of file lpi_spx2.cpp. References FALSE, NULL, SCIPlpiReadLP(), and TRUE. Referenced by SCIPlpiIsInfinity(), and SCIPlpiReadLP().
reads LP from a file read file in MPS format parameters: filename bool keepNames bool ignoreErrors
Definition at line 4042 of file lpi_spx2.cpp. References fileExists(), SCIP_LPi::messagehdlr, NULL, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIPdebugMessage, SCIPlpiWriteLP(), SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by fileExists().
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
Definition at line 4076 of file lpi_spx2.cpp. References SCIP_LPi::messagehdlr, NULL, SCIP_OKAY, SCIP_WRITEERROR, SCIPdebugMessage, SCIPmessagePrintWarning(), and SCIP_LPi::spx. Referenced by SCIPlpiReadLP(). Variable Documentation
Definition at line 900 of file lpi_spx2.cpp. Referenced by SCIPlpiGetSolverName().
Definition at line 901 of file lpi_spx2.cpp. Referenced by SCIPlpiGetSolverDesc(). |