|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpi_spx.cpp
Go to the documentation of this file.
24 * This is an implementation of SCIP's LP interface for SoPlex. While the ratio test is fixed to SoPlex's standard,
25 * different pricing methods can be chosen and an autopricing strategy (start with devex and switch to steepest edge
26 * after too many iterations) is implemented directly. Scaler and simplifier may be applied if solving from scratch.
28 * For debugging purposes, the SoPlex results can be double checked with CPLEX if WITH_LPSCHECK is defined. This may
29 * yield false positives, since the LP is dumped to a file for transfering it to CPLEX, hence, precision may be lost.
32 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
34 #define AUTOPRICING_ITERSWITCH 10000/**< start with devex and switch to steepest edge after this many iterations */
35 #define STRONGBRANCH_RESTOREBASIS /**< if defined then in SCIPlpiStrongbranch() we restore the basis after the
44 #define CHECK_SPXSOLVE true /**< shall the SoPlex results in spxSolve() be double checked using CPLEX? */
45 #define CHECK_SPXSTRONGBRANCH true /**< shall the SoPlex results in SCIPlpStrongbranch() be double checked using CPLEX? */
47 #define EXIT_AT_WRONG_RESULT false/**< shall program be exited if CPLEX returns different result than SoPlex? */
55 SCIPmessagePrintWarning(m_messagehdlr, "CPLEX error <%d>; SoPlex result unchecked\n", _cpxstat_); \
132 /** Macro for a single SoPlex call for which exceptions have to be catched - return an LP error. We
133 * make no distinction between different exception types, e.g., between memory allocation and other
218 SPxSolver::VarStatus* m_rowstat; /**< basis status of rows before starting strong branching (if available, 0 otherwise) */
219 SPxSolver::VarStatus* m_colstat; /**< basis status of columns before starting strong branching (if available, 0 otherwise) */
311 /**< return feastol set by SCIPlpiSetRealpar(), which might be tighter than what SoPlex accepted */
331 /**< return opttol set by SCIPlpiSetRealpar(), which might be tighter than what SoPlex accepted */
524 SCIPdebugMessage("switching to %s representation of the basis\n", p_rep == SPxSolver::ROW ? "row" : "column");
694 setTerminationIter(m_autopricing && (m_itlim < 0 || m_itlim - m_itused > AUTOPRICING_ITERSWITCH) ? AUTOPRICING_ITERSWITCH : m_itlim - m_itused);
698 if( m_autopricing && m_stat == SPxSolver::ABORT_ITER && (m_itlim < 0 || m_itlim - m_itused > 0) )
721 if( getDoubleCheck() && (m_stat == SPxSolver::OPTIMAL || m_stat == SPxSolver::UNBOUNDED || m_stat == SPxSolver::INFEASIBLE || m_stat == SPxSolver::ABORT_VALUE) )
767 SCIPerrorMessage("In %s: SoPlex returned status=%d (%s) while CPLEX claims obj=%.10f %s %.10f=obj.limit (%s) (checknum=%d)\n",
768 m_probname, m_stat, spxStatusString(m_stat), cpxobj, getSense() == SPxSolver::MINIMIZE ? "<" : ">",
769 getSense() == SPxSolver::MINIMIZE ? getObjUpLimit() : getObjLoLimit(), cpxStatusString(cpxstat), m_checknum);
776 SCIPerrorMessage("In %s: SoPlex returned status=%d (%s) while CPLEX claims obj=%.10f %s %.10f=obj.limit (%s) (checknum=%d)\n",
777 m_probname, m_stat, spxStatusString(m_stat), cpxobj, getSense() == SPxSolver::MINIMIZE ? "<" : ">",
778 getSense() == SPxSolver::MINIMIZE ? getObjUpLimit() : getObjLoLimit(), cpxStatusString(cpxstat), m_checknum);
786 SCIPerrorMessage("In %s: SoPlex returned status=%d (%s) while CPLEX claims obj=%.10f %s %.10f=obj.limit (%s) (checknum=%d)\n",
787 m_probname, m_stat, spxStatusString(m_stat), cpxobj, getSense() == SPxSolver::MINIMIZE ? "<" : ">",
788 getSense() == SPxSolver::MINIMIZE ? getObjUpLimit() : getObjLoLimit(), cpxStatusString(cpxstat), m_checknum);
812 /* SCIPerrorMessage("In %s: LP optimal; SoPlex value=%.10f %s CPLEX value=%.10f too good (checknum=%d)\n", value(),
818 SCIPerrorMessage("In %s: LP optimal; SoPlex value=%.10f %s CPLEX value=%.10f suboptimal (checknum=%d)\n", value(),
860 /* use scaler and simplifier if no basis is loaded, i.e., if solving for the first time or from scratch */
861 if( SPxSolver::getBasisStatus() == SPxBasis::NO_PROBLEM && getScaling() && nCols() > 0 && nRows() > 0 )
868 if( SPxSolver::getBasisStatus() == SPxBasis::NO_PROBLEM && getPresolving() && nCols() > 0 && nRows() > 0 )
900 SCIPdebugMessage("simplifier ended with status %u (0: OKAY, 1: INFEASIBLE, 2: DUAL_INFEASIBLE, 3: UNBOUNDED, 4: VANISHED)\n", result);
905 SCIPdebugMessage("simplifier detected primal or dual infeasibility - reloading and solving unsimplified LP\n");
967 if( (simplifier == NULL || result != SPxSimplifier::VANISHED) && SPxSolver::getBasisStatus() >= SPxBasis::REGULAR )
1007 SCIPmessagePrintWarning(m_messagehdlr, "SoPlex unsimplification unsuccessful; solving again without LP presolving (SoPlex says %s)\n",
1205 int namestoragesize, /**< size of namestorage (if 0, storageleft returns the storage needed) */
1250 int namestoragesize, /**< size of namestorage (if 0, -storageleft returns the storage needed) */
1300 typedef SCIP_DUALPACKET COLPACKET; /* each column needs two bits of information (basic/on_lower/on_upper) */
1302 typedef SCIP_DUALPACKET ROWPACKET; /* each row needs two bit of information (basic/on_lower/on_upper) */
1318 SCIP_Real rowrepswitch; /**< use row representation if number of rows divided by number of columns exceeds this value */
1319 SCIP_Real conditionlimit; /**< maximum condition number of LP basis counted as stable (-1.0: no limit) */
1320 SCIP_Bool checkcondition; /**< should condition number of LP basis be checked for stability? */
1345 )
1367 )
1396 {
1405 {
1470 )
1496 {
1544 {
1548 sprintf(spxname, "SoPlex %d.%d.%d.%d", SOPLEX_VERSION/100, (SOPLEX_VERSION % 100)/10, SOPLEX_VERSION % 10, SOPLEX_SUBVERSION); /*lint !e778*/
1550 sprintf(spxname, "SoPlex %d.%d.%d", SOPLEX_VERSION/100, (SOPLEX_VERSION % 100)/10, SOPLEX_VERSION % 10); /*lint !e778*/
1559 {
1560 sprintf(spxdesc, "%s", "Linear Programming Solver developed at Zuse Institute Berlin (soplex.zib.de)");
1574 {
1602 /* we use this construction to allocate the memory for the SoPlex class also via the blockmemshell */
1631 {
1730 const int* beg, /**< start index of each column in ind- and val-array, or NULL if nnonz == 0 */
1807 /** deletes columns from SCIP_LP; the new position of a column must not be greater that its old position */
1829 /* SoPlex removeCols() method deletes the columns with dstat[i] < 0, so we have to negate the values */
1922 /** deletes rows from SCIP_LP; the new position of a row must not be greater that its old position */
1944 /* SoPlex removeRows() method deletes the rows with dstat[i] < 0, so we have to negate the values */
1957 {
2087 )
2144 /** multiplies a row with a non-zero scalar; for negative scalars, the row's sense is switched accordingly */
2209 /** multiplies a column with a non-zero scalar; the objective value is multiplied with the scalar, and the bounds
2297 )
2314 )
2331 )
2341 /* SoPlex has no direct method to return the number of nonzeros, so we have to count them manually */
2357 /** gets columns from LP problem object; the arrays have to be large enough to store all values
2494 int namestoragesize, /**< size of namestorage (if 0, storageleft returns the storage needed) */
2520 int namestoragesize, /**< size of namestorage (if 0, -storageleft returns the storage needed) */
2543 )
2551 *objsen = (lpi->spx->getSense() == SPxLP::MINIMIZE) ? SCIP_OBJSEN_MINIMIZE : SCIP_OBJSEN_MAXIMIZE;
2668 /** solves LP -- used for both, primal and dual simplex, because SoPlex doesn't distinct the two cases */
2681 SCIPdebugMessage("calling SoPlex solve(): %d cols, %d rows\n", lpi->spx->nCols(), lpi->spx->nRows());
2696 SCIPdebugMessage(" -> SoPlex status: %d, basis status: %d\n", lpi->spx->getStatus(), lpi->spx->basis().status());
2720 {
2729 /* first decide if we want to switch the basis representation; in order to avoid oscillatory behaviour, we add the
2753 retcode = rowrep ? spxSolve(lpi, SPxSolver::ROW, SPxSolver::LEAVE) : spxSolve(lpi, SPxSolver::COLUMN, SPxSolver::ENTER);
2764 {
2773 /* first decide if we want to switch the basis representation; in order to avoid oscillatory behaviour, we add the
2797 retcode = rowrep ? spxSolve(lpi, SPxSolver::ROW, SPxSolver::ENTER) : spxSolve(lpi, SPxSolver::COLUMN, SPxSolver::LEAVE);
2804 /** calls barrier or interior point algorithm to solve the LP with crossover to simplex basis */
2808 )
2821 {
2832 {
2866 SCIPdebugMessage("calling SCIPlpiStrongbranch() on variable %d (%d iterations)\n", col, itlim);
2941 /* if cycling or singular basis occured and we started not from the pre-strong-branching basis, then we restore the
2943 if( (status == SPxSolver::ABORT_CYCLING || status == SPxSolver::SINGULAR) && !fromparentbasis && spx->iterations() < itlim )
2945 SCIPdebugMessage(" --> Repeat strong branching down with %d iterations after restoring basis\n", itlim - spx->iterations());
3019 /* if cycling or singular basis occured and we started not from the pre-strong-branching basis, then we restore the
3021 else if( (status == SPxSolver::ABORT_CYCLING || status == SPxSolver::SINGULAR) && !fromparentbasis && spx->iterations() < itlim )
3023 SCIPdebugMessage(" --> Repeat strong branching up with %d iterations after restoring basis\n", itlim - spx->iterations());
3123 retcode = lpiStrongbranch(lpi, cols[j], psols[j], itlim, &(down[j]), &(up[j]), &(downvalid[j]), &(upvalid[j]), iter);
3197 retcode = lpiStrongbranch(lpi, cols[j], psols[j], itlim, &(down[j]), &(up[j]), &(downvalid[j]), &(upvalid[j]), iter);
3225 {
3250 /** returns TRUE iff LP is proven to have a primal unbounded ray (but not necessary a primal feasible point);
3256 {
3265 /** returns TRUE iff LP is proven to have a primal unbounded ray (but not necessary a primal feasible point),
3271 {
3288 {
3294 assert(lpi->spx->getStatus() != SPxSolver::UNBOUNDED || lpi->spx->basis().status() == SPxBasis::UNBOUNDED);
3296 /* if SoPlex returns unbounded, this may only mean that an unbounded ray is available, not necessarily a primal
3306 {
3319 {
3329 /* note that the solver status may be ABORT_VALUE and the basis status optimal; if we are optimal, isPerturbed() may
3335 ((basestatus == SPxBasis::PRIMAL || basestatus == SPxBasis::UNBOUNDED) && !lpi->spx->isPerturbed());
3338 /** returns TRUE iff LP is proven to have a dual unbounded ray (but not necessary a dual feasible point);
3344 {
3353 /** returns TRUE iff LP is proven to have a dual unbounded ray (but not necessary a dual feasible point),
3359 {
3372 {
3378 return (lpi->spx->getStatus() == SPxSolver::INFEASIBLE && lpi->spx->basis().status() == SPxBasis::DUAL
3386 {
3399 {
3405 /* note that the solver status may be ABORT_VALUE and the basis status optimal; if we are optimal, isPerturbed() may
3408 assert(lpi->spx->basis().status() == SPxBasis::OPTIMAL || lpi->spx->getStatus() != SPxSolver::OPTIMAL);
3418 {
3425 /* note that the solver status may be ABORT_VALUE and the basis status optimal; if we are optimal, isPerturbed() may
3435 {
3442 /* If the condition number of the basis should be checked, everything above the specified threshold is counted
3464 return (lpi->spx->getStatus() != SPxSolver::ERROR && lpi->spx->getStatus() != SPxSolver::SINGULAR);
3471 {
3484 {
3497 {
3510 {
3519 /** tries to reset the internal status of the LP solver in order to ignore an instability of the last solving call */
3523 )
3540 )
3610 )
3643 )
3671 )
3685 * Such information is usually only available, if also a (maybe not optimal) solution is available.
3686 * The LPI should return SCIP_INVALID for @p quality, if the requested quality is not available.
3753 /* Return if the vectors are not set up. The vectors are not set up if for instance we preformed
3772 /* In row case for computing the reduced costs one needs to pass through the basis. We skip this expensive part. */
3800 /** gets current basis status for columns and rows; arrays must be large enough to store the basis status */
3972 /** returns the indices of the basic columns and rows; basic column n gives value n, basic row m gives value -1-m */
3976 )
3987 /* the LPi defines the basis as column basis, i.e., as the set of (indices of) non-fixed columns and rows; if SoPlex
4002 /* for row representation, return the complement of the basis; for this, we need to loop through all rows and columns */
4094 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4095 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4172 /* should be a valid row index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4184 /* should be a valid column index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4322 /* should be a valid row index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4331 /* should be a valid column index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4359 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4360 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4396 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4397 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4403 const SCIP_Real* binvrow, /**< row in (A_B)^-1 from prior call to SCIPlpiGetBInvRow(), or NULL */
4448 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4449 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4534 /** loads LPi state (like basis information) into solver; note that the LP might have been extended with additional
4641 )
4650 )
4666 )
4709 /** loads LPi pricing norms into solver; note that the LP might have been extended with additional
4975 {
4985 )
5009 {
5025 )
5058 )
SCIP_RETCODE SCIPlpiScaleCol(SCIP_LPI *lpi, int col, SCIP_Real scaleval) Definition: lpi_spx.cpp:2215 static void lpistateUnpack(const SCIP_LPISTATE *lpistate, int *cstat, int *rstat) Definition: lpi_spx.cpp:1430 SCIP_Bool SCIPlpiIsPrimalUnbounded(SCIP_LPI *lpi) Definition: lpi_spx.cpp:3288 SCIP_RETCODE SCIPlpiDelCols(SCIP_LPI *lpi, int firstcol, int lastcol) Definition: lpi_spx.cpp:1789 SCIP_RETCODE SCIPlpiReadState(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:4650 static SCIP_RETCODE ensureRstatMem(SCIP_LPI *lpi, int num) Definition: lpi_spx.cpp:1367 SCIP_RETCODE SCIPlpiGetSolFeasibility(SCIP_LPI *lpi, SCIP_Bool *primalfeasible, SCIP_Bool *dualfeasible) Definition: lpi_spx.cpp:3235 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 **, int nnonz, const int *beg, const int *ind, const SCIP_Real *val) Definition: lpi_spx.cpp:1664 Definition: type_lpi.h:58 SCIP_RETCODE SCIPlpiSolveBarrier(SCIP_LPI *lpi, SCIP_Bool crossover) Definition: lpi_spx.cpp:2808 Definition: type_lpi.h:50 SCIP_RETCODE SCIPlpiGetObjval(SCIP_LPI *lpi, SCIP_Real *objval) Definition: lpi_spx.cpp:3540 static SCIP_RETCODE getRedCostEst(SPxSCIP *spx, int col, SCIP_Real *val) Definition: lpi_spx.cpp:3749 SCIP_RETCODE SCIPlpiGetBInvRow(SCIP_LPI *lpi, int r, SCIP_Real *coef) Definition: lpi_spx.cpp:4101 Definition: type_lpi.h:41 void SCIPdecodeDualBit(const SCIP_DUALPACKET *inp, int *out, int count) Definition: bitencode.c:298 interface methods for specific LP solvers SCIP_RETCODE SCIPlpiGetState(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPISTATE **lpistate) Definition: lpi_spx.cpp:4496 SCIP_RETCODE SCIPlpiGetBase(SCIP_LPI *lpi, int *cstat, int *rstat) Definition: lpi_spx.cpp:3804 Definition: type_lpi.h:52 Definition: type_lpi.h:72 SCIP_RETCODE SCIPlpiWriteLP(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:5058 SCIP_RETCODE SCIPlpiGetObj(SCIP_LPI *lpi, int firstcol, int lastcol, SCIP_Real *vals) Definition: lpi_spx.cpp:2560 static void lpistatePack(SCIP_LPISTATE *lpistate, const int *cstat, const int *rstat) Definition: lpi_spx.cpp:1414 Definition: struct_message.h:35 Definition: type_lpi.h:89 SCIP_RETCODE SCIPlpiScaleRow(SCIP_LPI *lpi, int row, SCIP_Real scaleval) Definition: lpi_spx.cpp:2148 SCIP_RETCODE SCIPlpiGetBInvACol(SCIP_LPI *lpi, int c, SCIP_Real *coef) Definition: lpi_spx.cpp:4455 Definition: type_retcode.h:38 SCIP_RETCODE SCIPlpiGetPrimalRay(SCIP_LPI *lpi, SCIP_Real *ray) Definition: lpi_spx.cpp:3610 SCIP_RETCODE SCIPlpiGetIterations(SCIP_LPI *lpi, int *iterations) Definition: lpi_spx.cpp:3671 Definition: lpi_cpx.c:191 Definition: type_lpi.h:53 SCIP_Bool SCIPlpiIsPrimalInfeasible(SCIP_LPI *lpi) Definition: lpi_spx.cpp:3306 Definition: type_lpi.h:70 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) Definition: lpi_spx.cpp:3065 SCIP_RETCODE SCIPlpiDelColset(SCIP_LPI *lpi, int *dstat) Definition: lpi_spx.cpp:1811 SCIP_RETCODE SCIPlpiStartStrongbranch(SCIP_LPI *lpi) Definition: lpi_spx.cpp:2821 SCIP_RETCODE SCIPlpiGetBasisInd(SCIP_LPI *lpi, int *bind) Definition: lpi_spx.cpp:3976 Definition: type_lpi.h:90 packing single and dual bit values static SCIP_RETCODE ensureCstatMem(SCIP_LPI *lpi, int num) Definition: lpi_spx.cpp:1345 static void lpistateFree(SCIP_LPISTATE **lpistate, BMS_BLKMEM *blkmem) Definition: lpi_spx.cpp:1470 Definition: type_retcode.h:36 SCIP_RETCODE SCIPlpiGetBInvCol(SCIP_LPI *lpi, int c, SCIP_Real *coef) Definition: lpi_spx.cpp:4366 SCIP_RETCODE SCIPlpiGetSol(SCIP_LPI *lpi, SCIP_Real *objval, SCIP_Real *primsol, SCIP_Real *dualsol, SCIP_Real *activity, SCIP_Real *redcost) Definition: lpi_spx.cpp:3557 Definition: type_retcode.h:42 Definition: type_lpi.h:34 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) Definition: lpi_spx.cpp:2364 Definition: type_lpi.h:44 SCIP_RETCODE SCIPlpiChgCoef(SCIP_LPI *lpi, int row, int col, SCIP_Real newval) Definition: lpi_spx.cpp:2063 void SCIPmessagePrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) Definition: message.c:411 SCIP_RETCODE SCIPlpiSetState(SCIP_LPI *lpi, BMS_BLKMEM *, SCIP_LPISTATE *lpistate) Definition: lpi_spx.cpp:4540 static SCIP_RETCODE spxSolve(SCIP_LPI *lpi, SPxSolver::Representation rep, SPxSolver::Type type) Definition: lpi_spx.cpp:2673 static SCIP_RETCODE lpiGetBInvVec(SCIP_LPI *lpi, SCIP_Real *rhs, SCIP_Real *coef) Definition: lpi_spx.cpp:4242 Definition: type_lpi.h:51 Definition: type_retcode.h:33 Definition: type_lpi.h:33 Definition: type_lpi.h:45 SCIP_RETCODE SCIPlpiFreeState(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPISTATE **lpistate) Definition: lpi_spx.cpp:4623 Definition: type_retcode.h:46 SCIP_RETCODE SCIPlpiFreeNorms(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPINORMS **lpinorms) Definition: lpi_spx.cpp:4728 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) Definition: lpi_spx.cpp:3139 SCIP_RETCODE SCIPlpiChgSides(SCIP_LPI *lpi, int nrows, const int *ind, const SCIP_Real *lhs, const SCIP_Real *rhs) Definition: lpi_spx.cpp:2019 void SCIPencodeDualBit(const int *inp, SCIP_DUALPACKET *out, int count) Definition: bitencode.c:228 Definition: type_lpi.h:68 SCIP_RETCODE SCIPlpiGetCoef(SCIP_LPI *lpi, int row, int col, SCIP_Real *val) Definition: lpi_spx.cpp:2639 SCIP_RETCODE SCIPlpiSetBase(SCIP_LPI *lpi, int *cstat, int *rstat) Definition: lpi_spx.cpp:3891 SCIP_RETCODE SCIPlpiGetIntpar(SCIP_LPI *lpi, SCIP_LPPARAM type, int *ival) Definition: lpi_spx.cpp:4753 static SCIP_RETCODE lpiStrongbranch(SCIP_LPI *lpi, int col, SCIP_Real psol, int itlim, SCIP_Real *down, SCIP_Real *up, SCIP_Bool *downvalid, SCIP_Bool *upvalid, int *iter) Definition: lpi_spx.cpp:2845 static void setFeastol(SCIP_NLPIPROBLEM *nlpiproblem, SCIP_Real feastol) Definition: nlpi_ipopt.cpp:434 Definition: type_lpi.h:71 Definition: type_lpi.h:67 SCIP_RETCODE SCIPlpiChgObj(SCIP_LPI *lpi, int ncols, int *ind, SCIP_Real *obj) Definition: lpi_spx.cpp:2107 SCIP_RETCODE SCIPlpiGetBInvARow(SCIP_LPI *lpi, int r, const SCIP_Real *binvrow, SCIP_Real *coef) Definition: lpi_spx.cpp:4403 SCIP_RETCODE SCIPlpiGetRowNames(SCIP_LPI *lpi, int firstrow, int lastrow, char **rownames, char *namestorage, int namestoragesize, int *storageleft) Definition: lpi_spx.cpp:2517 Definition: type_lpi.h:43 SCIP_RETCODE SCIPlpiGetColNames(SCIP_LPI *lpi, int firstcol, int lastcol, char **colnames, char *namestorage, int namestoragesize, int *storageleft) Definition: lpi_spx.cpp:2491 SCIP_RETCODE SCIPlpiDelRows(SCIP_LPI *lpi, int firstrow, int lastrow) Definition: lpi_spx.cpp:1904 SCIP_RETCODE SCIPlpiGetNorms(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPINORMS **lpinorms) Definition: lpi_spx.cpp:4699 static SCIP_RETCODE lpistateCreate(SCIP_LPISTATE **lpistate, BMS_BLKMEM *blkmem, int ncols, int nrows) Definition: lpi_spx.cpp:1446 SCIP_RETCODE SCIPlpiSetNorms(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPINORMS *lpinorms) Definition: lpi_spx.cpp:4715 SCIP_RETCODE SCIPlpiSetIntpar(SCIP_LPI *lpi, SCIP_LPPARAM type, int ival) Definition: lpi_spx.cpp:4798 Definition: type_lpi.h:47 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) Definition: lpi_spx.cpp:3095 SCIP_RETCODE SCIPlpiGetDualfarkas(SCIP_LPI *lpi, SCIP_Real *dualfarkas) Definition: lpi_spx.cpp:3643 Definition: type_retcode.h:40 Definition: lpi_clp.cpp:121 SCIP_RETCODE SCIPlpiEndStrongbranch(SCIP_LPI *lpi) Definition: lpi_spx.cpp:2832 SCIP_RETCODE SCIPlpiGetBounds(SCIP_LPI *lpi, int firstcol, int lastcol, SCIP_Real *lbs, SCIP_Real *ubs) Definition: lpi_spx.cpp:2583 SCIP_Bool SCIPlpiHasStateBasis(SCIP_LPI *lpi, SCIP_LPISTATE *lpistate) Definition: lpi_spx.cpp:4641 SCIP_RETCODE SCIPlpiAddRows(SCIP_LPI *lpi, int nrows, const SCIP_Real *lhs, const SCIP_Real *rhs, char **, int nnonz, const int *beg, const int *ind, const SCIP_Real *val) Definition: lpi_spx.cpp:1842 SCIP_RETCODE SCIPlpiGetSides(SCIP_LPI *lpi, int firstrow, int lastrow, SCIP_Real *lhss, SCIP_Real *rhss) Definition: lpi_spx.cpp:2611 SCIP_RETCODE SCIPlpiGetRealpar(SCIP_LPI *lpi, SCIP_LPPARAM type, SCIP_Real *dval) Definition: lpi_spx.cpp:4872 public methods for message output Definition: type_lpi.h:79 SCIP_RETCODE SCIPlpiGetRealSolQuality(SCIP_LPI *lpi, SCIP_LPSOLQUALITY qualityindicator, SCIP_Real *quality) Definition: lpi_spx.cpp:3691 Definition: type_lpi.h:69 Definition: lpi_clp.cpp:93 SCIP_RETCODE SCIPlpiAddCols(SCIP_LPI *lpi, int ncols, const SCIP_Real *obj, const SCIP_Real *lb, const SCIP_Real *ub, char **, int nnonz, const int *beg, const int *ind, const SCIP_Real *val) Definition: lpi_spx.cpp:1725 SCIP_RETCODE SCIPlpiCreate(SCIP_LPI **lpi, SCIP_MESSAGEHDLR *messagehdlr, const char *name, SCIP_OBJSEN objsen) Definition: lpi_spx.cpp:1593 SCIP_RETCODE SCIPlpiChgBounds(SCIP_LPI *lpi, int ncols, const int *ind, const SCIP_Real *lb, const SCIP_Real *ub) Definition: lpi_spx.cpp:1975 SCIP_RETCODE SCIPlpiReadLP(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:5025 SCIP_RETCODE SCIPlpiGetRows(SCIP_LPI *lpi, int firstrow, int lastrow, SCIP_Real *lhs, SCIP_Real *rhs, int *nnonz, int *beg, int *ind, SCIP_Real *val) Definition: lpi_spx.cpp:2429 Definition: type_lpi.h:66 Definition: type_retcode.h:37 Definition: type_lpi.h:46 Definition: type_lpi.h:80 SCIP_RETCODE SCIPlpiIgnoreInstability(SCIP_LPI *lpi, SCIP_Bool *success) Definition: lpi_spx.cpp:3523 Definition: type_retcode.h:43 SCIP_RETCODE SCIPlpiChgObjsen(SCIP_LPI *lpi, SCIP_OBJSEN objsen) Definition: lpi_spx.cpp:2087 SCIP_RETCODE SCIPlpiGetObjsen(SCIP_LPI *lpi, SCIP_OBJSEN *objsen) Definition: lpi_spx.cpp:2543 Definition: type_lpi.h:55 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) Definition: lpi_spx.cpp:3169 Definition: type_lpi.h:82 Definition: type_lpi.h:48 Definition: type_lpi.h:81 SCIP_RETCODE SCIPlpiSetRealpar(SCIP_LPI *lpi, SCIP_LPPARAM type, SCIP_Real dval) Definition: lpi_spx.cpp:4917 SCIP_RETCODE SCIPlpiDelRowset(SCIP_LPI *lpi, int *dstat) Definition: lpi_spx.cpp:1926 SCIP_RETCODE SCIPlpiWriteState(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:4666 Definition: type_lpi.h:59 |