28 #define RELAX_NAME "lp" 29 #define RELAX_DESC "relaxator solving LP relaxation" 30 #define RELAX_PRIORITY 0 68 for( c = 0; c < nconss; ++c )
70 const char* conshdlrname;
75 if( strcmp(conshdlrname,
"SOS1") != 0 && strcmp(conshdlrname,
"SOS2") != 0 && strcmp(conshdlrname,
"abspower") != 0
76 && strcmp(conshdlrname,
"bivariate") != 0 && strcmp(conshdlrname,
"bounddisjunction") != 0
77 && strcmp(conshdlrname,
"cardinality") != 0 && strcmp(conshdlrname,
"components") != 0
78 && strcmp(conshdlrname,
"conjunction") != 0 && strcmp(conshdlrname,
"countsols") != 0
79 && strcmp(conshdlrname,
"cumulative") != 0 && strcmp(conshdlrname,
"disjunction") != 0
80 && strcmp(conshdlrname,
"indicator") != 0 && strcmp(conshdlrname,
"integral") != 0
81 && strcmp(conshdlrname,
"knapsack") != 0 && strcmp(conshdlrname,
"linear") != 0
82 && strcmp(conshdlrname,
"logicor") != 0 && strcmp(conshdlrname,
"nonlinear") != 0
83 && strcmp(conshdlrname,
"orbisack") != 0 && strcmp(conshdlrname,
"quadratic") != 0
84 && strcmp(conshdlrname,
"setppc") != 0 && strcmp(conshdlrname,
"soc") != 0
85 && strcmp(conshdlrname,
"symresack") != 0 && strcmp(conshdlrname,
"varbound") != 0 )
119 SCIPdebugMsg(
scip,
"Setting LP relaxation solution, which improved upon earlier solution\n");
128 assert(relaxvar != NULL);
140 *lowerbound = relaxval;
170 relaxExecLp, relaxdata) );
171 assert(relax != NULL);
SCIP_RETCODE SCIPmarkRelaxSolValid(SCIP *scip, SCIP_Bool includeslp)
SCIP_Real SCIPgetPrimalbound(SCIP *scip)
SCIP_RETCODE SCIPhashmapCreate(SCIP_HASHMAP **hashmap, BMS_BLKMEM *blkmem, int mapsize)
SCIP_RETCODE SCIPincludeRelaxBasic(SCIP *scip, SCIP_RELAX **relaxptr, const char *name, const char *desc, int priority, int freq, SCIP_DECL_RELAXEXEC((*relaxexec)), SCIP_RELAXDATA *relaxdata)
SCIP_RETCODE SCIPincludeRelaxLp(SCIP *scip)
SCIP_Real SCIPinfinity(SCIP *scip)
static SCIP_DECL_RELAXEXEC(relaxExecLp)
enum SCIP_Retcode SCIP_RETCODE
SCIP_RETCODE SCIPclearRelaxSolVals(SCIP *scip)
SCIP_Real SCIPgetRelaxSolObj(SCIP *scip)
SCIP_CONS ** SCIPgetConss(SCIP *scip)
void * SCIPhashmapGetImage(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPcreate(SCIP **scip)
SCIP_RETCODE SCIPchgVarType(SCIP *scip, SCIP_VAR *var, SCIP_VARTYPE vartype, SCIP_Bool *infeasible)
SCIP_RETCODE SCIPsolve(SCIP *scip)
const char * SCIPconshdlrGetName(SCIP_CONSHDLR *conshdlr)
SCIP_STATUS SCIPgetStatus(SCIP *scip)
BMS_BLKMEM * SCIPblkmem(SCIP *scip)
void SCIPhashmapFree(SCIP_HASHMAP **hashmap)
void SCIPsetMessagehdlrQuiet(SCIP *scip, SCIP_Bool quiet)
SCIP_CONSHDLR * SCIPconsGetHdlr(SCIP_CONS *cons)
int SCIPgetNVars(SCIP *scip)
SCIP_RETCODE SCIPsetRelaxSolVal(SCIP *scip, SCIP_VAR *var, SCIP_Real val)
SCIP_SOL * SCIPgetBestSol(SCIP *scip)
struct SCIP_RelaxData SCIP_RELAXDATA
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
int SCIPgetNConss(SCIP *scip)
SCIP_Bool SCIPisRelaxSolValid(SCIP *scip)
SCIP_RETCODE SCIPcopy(SCIP *sourcescip, SCIP *targetscip, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, const char *suffix, SCIP_Bool global, SCIP_Bool enablepricing, SCIP_Bool passmessagehdlr, SCIP_Bool *valid)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
SCIP_RETCODE SCIPtransformProb(SCIP *scip)
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
SCIP_RETCODE SCIPfree(SCIP **scip)