82#define CONSHDLR_NAME "and"
83#define CONSHDLR_DESC "constraint handler for AND-constraints: r = and(x1, ..., xn)"
84#define CONSHDLR_SEPAPRIORITY +850100
85#define CONSHDLR_ENFOPRIORITY -850100
86#define CONSHDLR_CHECKPRIORITY -850100
87#define CONSHDLR_SEPAFREQ 1
88#define CONSHDLR_PROPFREQ 1
89#define CONSHDLR_EAGERFREQ 100
91#define CONSHDLR_MAXPREROUNDS -1
92#define CONSHDLR_DELAYSEPA FALSE
93#define CONSHDLR_DELAYPROP FALSE
94#define CONSHDLR_NEEDSCONS TRUE
96#define CONSHDLR_PRESOLTIMING (SCIP_PRESOLTIMING_FAST | SCIP_PRESOLTIMING_EXHAUSTIVE)
97#define CONSHDLR_PROP_TIMING SCIP_PROPTIMING_BEFORELP
99#define EVENTHDLR_NAME "and"
100#define EVENTHDLR_DESC "bound change event handler for AND-constraints"
102#define DEFAULT_PRESOLPAIRWISE TRUE
103#define DEFAULT_LINEARIZE FALSE
104#define DEFAULT_ENFORCECUTS TRUE
105#define DEFAULT_AGGRLINEARIZATION FALSE
106#define DEFAULT_UPGRRESULTANT TRUE
107#define DEFAULT_DUALPRESOLVING TRUE
109#define HASHSIZE_ANDCONS 500
110#define DEFAULT_PRESOLUSEHASHING TRUE
111#define NMINCOMPARISONS 200000
112#define MINGAINPERNMINCOMPARISONS 1e-06
135 unsigned int propagated:1;
136 unsigned int nofixedzero:1;
137 unsigned int impladded:1;
138 unsigned int opimpladded:1;
139 unsigned int sorted:1;
140 unsigned int changed:1;
141 unsigned int merged:1;
142 unsigned int checkwhenupgr:1;
145 unsigned int notremovablewhenupgr:1;
151struct SCIP_ConshdlrData
154 SCIP_Bool presolpairwise;
155 SCIP_Bool presolusehashing;
157 SCIP_Bool enforcecuts;
158 SCIP_Bool aggrlinearization;
159 SCIP_Bool upgrresultant;
160 SCIP_Bool dualpresolving;
226 (*conshdlrdata)->eventhdlr = eventhdlr;
308 for(
i = 0;
i < consdata->nvars; ++
i )
334 for(
i = 0;
i < consdata->nvars; ++
i )
354 assert(watchedvar1 == -1 || watchedvar1 != watchedvar2);
355 assert(watchedvar1 != -1 || watchedvar2 == -1);
360 if( watchedvar1 == consdata->watchedvar2 || watchedvar2 == consdata->watchedvar1 )
364 tmp = consdata->watchedvar1;
365 consdata->watchedvar1 = consdata->watchedvar2;
366 consdata->watchedvar2 =
tmp;
367 tmp = consdata->filterpos1;
368 consdata->filterpos1 = consdata->filterpos2;
369 consdata->filterpos2 =
tmp;
371 assert(watchedvar1 == -1 || watchedvar1 != consdata->watchedvar2);
372 assert(watchedvar2 == -1 || watchedvar2 != consdata->watchedvar1);
375 if( consdata->watchedvar1 != -1 && consdata->watchedvar1 != watchedvar1 )
377 assert(consdata->filterpos1 != -1);
380 if( consdata->watchedvar2 != -1 && consdata->watchedvar2 != watchedvar2 )
382 assert(consdata->filterpos2 != -1);
387 if( watchedvar1 != -1 && watchedvar1 != consdata->watchedvar1 )
391 if( watchedvar2 != -1 && watchedvar2 != consdata->watchedvar2 )
397 consdata->watchedvar1 = watchedvar1;
398 consdata->watchedvar2 = watchedvar2;
412 assert(consdata->nvars <= consdata->varssize);
414 if( num > consdata->varssize )
436 SCIP_Bool checkwhenupgr,
439 SCIP_Bool notremovablewhenupgr
452 (*consdata)->resvar = resvar;
453 (*consdata)->rows =
NULL;
454 (*consdata)->aggrrow =
NULL;
455 (*consdata)->nlrow =
NULL;
456 (*consdata)->nvars =
nvars;
457 (*consdata)->varssize =
nvars;
458 (*consdata)->nrows = 0;
459 (*consdata)->watchedvar1 = -1;
460 (*consdata)->watchedvar2 = -1;
461 (*consdata)->filterpos1 = -1;
462 (*consdata)->filterpos2 = -1;
463 (*consdata)->propagated =
FALSE;
464 (*consdata)->nofixedzero =
FALSE;
465 (*consdata)->impladded =
FALSE;
466 (*consdata)->opimpladded =
FALSE;
467 (*consdata)->sorted =
FALSE;
468 (*consdata)->changed =
TRUE;
469 (*consdata)->merged =
FALSE;
470 (*consdata)->checkwhenupgr = checkwhenupgr;
471 (*consdata)->notremovablewhenupgr = notremovablewhenupgr;
490 for( v = 0; v < (*consdata)->nvars; ++v )
500 for( v = 0; v < (*consdata)->nvars; v++ )
521 if( consdata->rows !=
NULL )
523 for(
r = 0;
r < consdata->nrows; ++
r )
532 if( consdata->aggrrow !=
NULL )
535 consdata->aggrrow =
NULL;
564 assert((*consdata)->watchedvar1 == -1);
565 assert((*consdata)->watchedvar2 == -1);
572 if( (*consdata)->nlrow !=
NULL )
578 for( v = 0; v < (*consdata)->nvars; v++ )
626 SCIP_Bool transformed;
646 consdata->vars[consdata->nvars] =
var;
648 consdata->sorted = (consdata->nvars == 1);
649 consdata->changed =
TRUE;
650 consdata->merged =
FALSE;
667 if( consdata->rows !=
NULL )
669 SCIPerrorMessage(
"cannot add coefficients to AND-constraint after LP relaxation was created\n");
707 if( consdata->watchedvar1 == pos )
711 if( consdata->watchedvar2 == pos )
716 assert(pos != consdata->watchedvar1);
717 assert(pos != consdata->watchedvar2);
723 consdata->vars[pos] = consdata->vars[consdata->nvars-1];
727 if( consdata->watchedvar1 == consdata->nvars )
728 consdata->watchedvar1 = pos;
729 if( consdata->watchedvar2 == consdata->nvars )
730 consdata->watchedvar2 = pos;
732 consdata->propagated =
FALSE;
733 consdata->sorted =
FALSE;
734 consdata->changed =
TRUE;
747 if( !consdata->sorted )
749 if( consdata->nvars <= 1 )
750 consdata->sorted =
TRUE;
757 if( consdata->watchedvar1 != -1 )
759 var1 = consdata->vars[consdata->watchedvar1];
761 consdata->watchedvar1 = -1;
762 if( consdata->watchedvar2 != -1 )
764 var2 = consdata->vars[consdata->watchedvar2];
766 consdata->watchedvar2 = -1;
769 assert(consdata->watchedvar1 == -1);
770 assert(consdata->watchedvar2 == -1);
775 consdata->sorted =
TRUE;
790 consdata->watchedvar1 = pos;
801 consdata->watchedvar2 = pos;
812 for( v = 0; v < consdata->nvars; ++v )
840 assert(consdata->nvars == 0 || consdata->vars !=
NULL);
845 var = consdata->vars[v];
876#ifdef SCIP_DISABLED_CODE
888 if(
repvar != consdata->resvar )
907 consdata->resvar =
repvar;
908 consdata->changed =
TRUE;
936 nvars = consdata->nvars;
939 consdata->nrows =
nvars + 1;
972 SCIP_Bool* infeasible
990 if( consdata->aggrrow ==
NULL )
1007 if( !(*infeasible) )
1009 if( consdata->rows ==
NULL )
1046 if( consdata->nlrow ==
NULL )
1054 for(
i = 0;
i < consdata->nvars; ++
i )
1065 for(
i = 0;
i < consdata->nvars; ++
i )
1109 for(
r = 0;
r < consdata->nrows; ++
r )
1140 for(
i = 0;
i < consdata->nvars; ++
i )
1219 if( consdata->rows ==
NULL )
1226 for(
r = 0;
r < consdata->nrows; ++
r )
1300 for( v = 0; v < consdata->nvars; ++v )
1323 SCIP_Bool infeasible;
1324 SCIP_Bool tightened;
1326 SCIPdebugMsg(
scip,
"constraint <%s>: operator %d fixed to 0.0 -> fix resultant <%s> to 0.0\n",
1362 SCIP_Bool infeasible;
1363 SCIP_Bool tightened;
1366 for( v = 0; v <
nvars && !(*cutoff); ++v )
1368 SCIPdebugMsg(
scip,
"constraint <%s>: resultant fixed to 1.0 -> fix operator var <%s> to 1.0\n",
1380 else if( tightened )
1427 nvars = consdata->nvars;
1437 SCIP_Bool infeasible;
1438 SCIP_Bool tightened;
1452 else if( tightened )
1461 else if( tightened )
1481 for( v = 0; v <
nvars; ++v )
1533 if( watchedvar2 == -1 )
1535 SCIP_Bool infeasible;
1536 SCIP_Bool tightened;
1538 assert(watchedvar1 != -1);
1545 for( v = consdata->nvars - 1; v >= 0; --v )
1546 if( v != watchedvar1 )
1551 SCIPdebugMsg(
scip,
"constraint <%s>: resultant <%s> fixed to 0.0, only one unfixed operand -> fix operand <%s> to 0.0\n",
1615 if( consdata->merged )
1619 if( consdata->nvars <= 1 )
1621 consdata->merged =
TRUE;
1625 vars = consdata->vars;
1626 nvars = consdata->nvars;
1639 for( v =
nvars - 1; v >= 0; --v )
1666 for( v =
nvars - 1; v >= 0; --v )
1692 SCIP_Bool infeasible;
1697 SCIPdebugMsg(
scip,
"AND-constraint <%s> is redundant: variable <%s> and its negation are present -> fix resultant <%s> = 0\n",
1720 consdata->merged =
TRUE;
1752 SCIP_Bool infeasible;
1753 SCIP_Bool tightened;
1761 resvar = consdata->resvar;
1762 vars = consdata->vars;
1763 nvars = consdata->nvars;
1768 if( consdata->propagated )
1770 assert(consdata->nofixedzero);
1782 if( !consdata->nofixedzero )
1792 consdata->nofixedzero =
TRUE;
1833 watchedvar1 = consdata->watchedvar1;
1834 watchedvar2 = consdata->watchedvar2;
1837 if( watchedvar1 != -1 )
1843 if( watchedvar2 != -1 )
1851 if( watchedvar1 == -1 )
1853 watchedvar1 = watchedvar2;
1856 assert(watchedvar1 != -1 || watchedvar2 == -1);
1859 if( watchedvar2 == -1 )
1866 if( watchedvar1 == -1 )
1868 assert(watchedvar2 == -1);
1871 else if( watchedvar1 !=
i )
1879 assert(watchedvar1 != -1 || watchedvar2 == -1);
1882 if( watchedvar1 == -1 )
1884 assert(watchedvar2 == -1);
1886 SCIPdebugMsg(
scip,
"constraint <%s>: all operator vars fixed to 1.0 -> fix resultant <%s> to 1.0\n",
1915 assert(watchedvar1 != -1);
1959 vars = consdata->vars;
1960 nvars = consdata->nvars;
2054 SCIP_Bool infeasible;
2079 for(
c = nconss - 1;
c >= 0 && !(*cutoff); --
c )
2107 vars = consdata->vars;
2108 nvars = consdata->nvars;
2116 resvar = consdata->resvar;
2137 for( v =
nvars - 1; v >= 0; --v )
2192 for( v =
nvars - 1; v >= 0 && !(*cutoff); --v )
2213 SCIPdebugMsg(
scip,
"dual-fixing all variables in constraint <%s> with positive contribution (when together exceeding the negative contribution of the resultant) to 0 and with negative contribution to 1\n",
SCIPconsGetName(cons));
2239 SCIP_Bool redundant;
2317 SCIPdebugMsg(
scip,
"dual-fixing variable <%s> in constraint <%s> to %g, because the contribution is%s " \
2318 "enough to nullify/exceed the contribution of the resultant \n",
2329 SCIPdebugMsg(
scip,
"dual-fixing all variables, except the variable with the highest contribution to " \
2330 "the objective, in constraint <%s> with positive contribution to 0 and with negative contribution to 1\n",
2382 SCIP_Bool redundant;
2385 SCIP_Bool linearize =
FALSE;
2402 for( v =
nvars - 1; v >= 0; --v )
2435 "dual aggregating operand <%s> with 1 up- and downlock to the resultant <%s> in constraint <%s>\n",
2460 for( v = consdata->nvars - 1; v >= 0; --v )
2474 "dual-fixing variable <%s> in constraint <%s> to 1, because the contribution is negative\n",
2496 for( v =
nvars - 1; v >= 0; --v )
2588 consvars[0] = consdata->resvar;
2593 for( v = consdata->nvars - 1; v >= 0; --v )
2596 consvars[1] = consdata->vars[v];
2608 (*naddconss) += consdata->nvars;
2616 else if( consdata->nvars == 1 )
2703 SCIP_Bool infeasible;
2723 vars = consdata->vars;
2724 nvars = consdata->nvars;
2732 for( v =
nvars - 1; v >= 0; --v )
2738 SCIPdebugMsg(
scip,
"In constraint <%s> the operand <%s> is fixed to 1 so remove it from the constraint\n",
2751 SCIPdebugMsg(
scip,
"constraint <%s> redundant: because operand <%s> is fixed to zero so we can fix the resultant <%s> to 0\n",
2767 if( consdata->nvars <
nvars )
2774 if( consdata->nvars == 0 )
2776 SCIPdebugMsg(
scip,
"All operand in constraint <%s> were deleted, so the resultant needs to be fixed to 1\n",
2790 else if( consdata->nvars == 1 )
2792 SCIP_Bool redundant;
2810 nvars = consdata->nvars;
2818 for( v =
nvars - 1; v > 0; --v )
2836 for(
v2 = v - 1;
v2 >= 0; --
v2 )
2865 SCIPdebugMsg(
scip,
"constraint <%s> redundant: because variable <%s> and variable <%s> are in a clique, the resultant <%s> can be fixed to 0\n",
2909 var1 = consdata->resvar;
2922 SCIPdebugMsg(
scip,
"In constraint <%s> the resultant <%s> is fixed to 1 so fix all operands to 1\n",
2926 for( v =
nvars - 1; v >= 0 && !(*cutoff); --v )
2956 for( v =
nvars - 1; v >= 0; --v )
2980 SCIPdebugMsg(
scip,
"In constraint <%s> the resultant <%s> can be fixed to 0 because the negation of it is an operand.\n",
3000 consvars[0] = consdata->resvar;
3022 SCIPdebugMsg(
scip,
"In constraint <%s> the resultant <%s> can be fixed to 0 because the negation of it is an operand.\n",
3073 SCIPdebugMsg(
scip,
"in constraint <%s> the resultant <%s> can be fixed to 0 because it is in a clique with operand <%s>\n",
3090 for( v =
nvars - 1; v >= 0; --v )
3119 else if(
v2 >= 0 && v == -1 )
3176 SCIPdebugMsg(
scip,
"in constraint <%s> the resultant <%s> can be fixed to 0 because two operands are negated of each other\n",
3199 SCIP_Bool redundant;
3202 SCIPdebugMsg(
scip,
"In constraint <%s> the operand <%s> is in a negated clique with all other operands, so we can aggregated this operand to the resultant <%s>.\n",
3230 var1 = consdata->resvar;
3238 for( v =
nvars - 1; v >= 0; --v )
3259 for(
v2 = v - 1;
v2 >= 0; --
v2 )
3287 for( v =
nvars - 1; v >= 0; --v )
3390 assert(consdata->sorted);
3391 assert(consdata->nvars > 0);
3396 assert(minidx >= 0 && minidx <= maxidx);
3424 hashtablesize = nconss;
3432 for(
c = 0;
c < nconss; ++
c )
3455 SCIP_Bool redundant;
3546 for(
i = 0;
i < nconss;
i++ )
3552 if( !conshdlrdata->enforcecuts )
3644#ifdef SCIP_DISABLED_CODE
3645 SCIPdebugMsg(
scip,
"preprocess AND-constraint pair <%s>[chg:%d] and <%s>[chg:%d]\n",
3709 SCIP_Bool infeasible;
3710 SCIP_Bool redundant;
3714 SCIPdebugMsg(
scip,
"equivalent AND-constraints <%s> and <%s>: aggregate resultants <%s> == <%s>\n",
3747 SCIP_Bool infeasible;
3751 SCIPdebugMsg(
scip,
"AND-constraint <%s> is superset of <%s>: add implication <%s> = 1 -> <%s> = 1\n",
3757 &infeasible, &nboundchgs) );
3759 (*nbdchgs) += nboundchgs;
3763 SCIP_Bool infeasible;
3767 SCIPdebugMsg(
scip,
"AND-constraint <%s> is superset of <%s>: add implication <%s> = 1 -> <%s> = 1\n",
3773 &infeasible, &nboundchgs) );
3775 (*nbdchgs) += nboundchgs;
3835 if( conshdlrdata->linearize )
3853 for(
c = 0;
c < nconss; ++
c )
3866 nvars = consdata->nvars;
3868 if( !conshdlrdata->aggrlinearization )
3870 vars[0] = consdata->resvar;
3875 for( v = 0; v <
nvars; ++v )
3878 vars[1] = consdata->vars[v];
3896 for( v = 0; v <
nvars; ++v )
3898 vars[v] = consdata->vars[v];
3904 if( conshdlrdata->aggrlinearization )
3950#ifdef GMLGATEPRINTING
4008 for(
c = nconss - 1;
c >= 0; --
c )
4020 if( consdata->nvars == 0 )
4049 for( v = consdata->nvars - 1; v >= 0; --v )
4071#ifdef SCIP_DISABLED_CODE
4072 for( v =
nvars - 1; v >= 0; --v )
4113 for(
c = 0;
c < nconss; ++
c )
4130 for(
c = 0;
c < nconss; ++
c )
4137 if( consdata->nlrow !=
NULL )
4198 *infeasible =
FALSE;
4200 for(
i = 0;
i < nconss && !(*infeasible);
i++ )
4290 for(
i = 0;
i < nconss;
i++ )
4352 else if( nfixedvars > 0 || nupgdconss > 0 )
4405 consdata->propagated =
FALSE;
4427 assert(consdata->nvars >= 1);
4430 if( consdata->nvars == 1 )
4432 SCIP_Bool redundant;
4459 else if( !consdata->impladded )
4464 for(
i = 0;
i < consdata->nvars && !
cutoff; ++
i )
4472 consdata->impladded =
TRUE;
4484 consdata->opimpladded =
TRUE;
4492 SCIP_CALL(
dualPresolve(
scip, conss, nconss, conshdlrdata->eventhdlr, &
entries, &nentries, &
cutoff, nfixedvars, naggrvars, nchgcoefs, ndelconss, nupgdconss, naddconss) );
4616 for(
i = 0;
i < consdata->nvars; ++
i )
4679 const char* consname;
4706 for( v = 0; v <
nvars; ++v )
4723 initial, separate, enforce, check,
propagate, local, modifiable, dynamic, removable, stickingatnode) );
4750 if( resvar ==
NULL )
4766 SCIPerrorMessage(
"missing starting character '(' parsing AND-constraint\n");
4815 initial, separate, enforce, check,
propagate, local, modifiable, dynamic, removable, stickingatnode) );
4832 initial, separate, enforce, check,
propagate, local, modifiable, dynamic, removable, stickingatnode) );
4855 vars[consdata->nvars] = consdata->resvar;
4873 (*nvars) = consdata->nvars + 1;
4898 consdata->nofixedzero =
FALSE;
4900 consdata->propagated =
FALSE;
4939#ifdef GMLGATEPRINTING
4963 "should pairwise constraint comparison be performed in presolving?",
4966 "constraints/and/presolusehashing",
4967 "should hash table be used for detecting redundant constraints in advance",
4971 "should the AND-constraint get linearized and removed (in presolving)?",
4975 "should cuts be separated during LP enforcing?",
4979 "should an aggregated linearization be used?",
4983 "should all binary resultant variables be upgraded to implicit binary variables?",
4987 "should dual presolving be performed?",
5016 SCIP_Bool modifiable,
5022 SCIP_Bool removable,
5024 SCIP_Bool stickingatnode
5032 SCIP_Bool infeasible;
5036 if( conshdlr ==
NULL )
5069 for( v =
nvars - 1; v >= 0; --v )
5093 SCIP_CALL(
SCIPcreateCons(
scip, cons, name, conshdlr, consdata, initial, separate, enforce, check,
propagate,
5094 local, modifiable, dynamic, removable, stickingatnode) );
5146 return consdata->nvars;
5170 return consdata->vars;
5194 return consdata->resvar;
5218 return consdata->sorted;
5243 assert(consdata->sorted);
5274 consdata->checkwhenupgr =
flag;
5306 consdata->notremovablewhenupgr =
flag;
static SCIP_RETCODE addRelaxation(SCIP *scip, SCIP_CONS *cons, SCIP_Bool *infeasible)
static SCIP_RETCODE consdataFreeRows(SCIP *scip, SCIP_CONSDATA *consdata)
static SCIP_RETCODE consdataPrint(SCIP *scip, SCIP_CONSDATA *consdata, FILE *file)
static SCIP_RETCODE consdataCatchWatchedEvents(SCIP *scip, SCIP_CONSDATA *consdata, SCIP_EVENTHDLR *eventhdlr, int pos, int *filterpos)
static SCIP_RETCODE consdataDropEvents(SCIP *scip, SCIP_CONSDATA *consdata, SCIP_EVENTHDLR *eventhdlr)
#define DEFAULT_DUALPRESOLVING
static SCIP_RETCODE dualPresolve(SCIP *scip, SCIP_CONS **conss, int nconss, SCIP_EVENTHDLR *eventhdlr, unsigned char **entries, int *nentries, SCIP_Bool *cutoff, int *nfixedvars, int *naggrvars, int *nchgcoefs, int *ndelconss, int *nupgdconss, int *naddconss)
static SCIP_RETCODE consdataSwitchWatchedvars(SCIP *scip, SCIP_CONSDATA *consdata, SCIP_EVENTHDLR *eventhdlr, int watchedvar1, int watchedvar2)
#define CONSHDLR_NEEDSCONS
#define CONSHDLR_SEPAFREQ
static SCIP_RETCODE delCoefPos(SCIP *scip, SCIP_CONS *cons, SCIP_EVENTHDLR *eventhdlr, int pos)
#define CONSHDLR_CHECKPRIORITY
static SCIP_RETCODE consdataFixOperandsOne(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **vars, int nvars, SCIP_Bool *cutoff, int *nfixedvars)
static SCIP_RETCODE separateCons(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Bool *separated, SCIP_Bool *cutoff)
static SCIP_RETCODE addCoef(SCIP *scip, SCIP_CONS *cons, SCIP_EVENTHDLR *eventhdlr, SCIP_VAR *var)
static SCIP_RETCODE createRelaxation(SCIP *scip, SCIP_CONS *cons)
#define CONSHDLR_PROP_TIMING
static void conshdlrdataFree(SCIP *scip, SCIP_CONSHDLRDATA **conshdlrdata)
static SCIP_RETCODE unlockRounding(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var)
static SCIP_RETCODE analyzeZeroResultant(SCIP *scip, SCIP_CONS *cons, int watchedvar1, int watchedvar2, SCIP_Bool *cutoff, int *nfixedvars)
static SCIP_RETCODE consdataCreate(SCIP *scip, SCIP_CONSDATA **consdata, SCIP_EVENTHDLR *eventhdlr, int nvars, SCIP_VAR **vars, SCIP_VAR *resvar, SCIP_Bool checkwhenupgr, SCIP_Bool notremovablewhenupgr)
#define DEFAULT_UPGRRESULTANT
#define CONSHDLR_MAXPREROUNDS
static SCIP_RETCODE consdataFixResultantZero(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *resvar, int pos, SCIP_Bool *cutoff, int *nfixedvars)
#define DEFAULT_PRESOLPAIRWISE
#define CONSHDLR_SEPAPRIORITY
static SCIP_RETCODE analyzeConflictOne(SCIP *scip, SCIP_CONS *cons, int falsepos)
static SCIP_RETCODE detectRedundantConstraints(SCIP *scip, BMS_BLKMEM *blkmem, SCIP_CONS **conss, int nconss, int *firstchange, SCIP_Bool *cutoff, int *naggrvars, int *ndelconss)
#define DEFAULT_LINEARIZE
static SCIP_RETCODE cliquePresolve(SCIP *scip, SCIP_CONS *cons, SCIP_EVENTHDLR *eventhdlr, SCIP_Bool *cutoff, int *nfixedvars, int *naggrvars, int *nchgcoefs, int *ndelconss, int *naddconss)
static SCIP_RETCODE preprocessConstraintPairs(SCIP *scip, SCIP_CONS **conss, int firstchange, int chkind, SCIP_Bool *cutoff, int *naggrvars, int *nbdchgs, int *ndelconss)
static SCIP_RETCODE consdataLinearize(SCIP *scip, SCIP_CONS *cons, SCIP_Bool *cutoff, int *nfixedvars, int *nupgdconss)
static SCIP_RETCODE lockRounding(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var)
static SCIP_RETCODE consdataEnsureVarsSize(SCIP *scip, SCIP_CONSDATA *consdata, int num)
static SCIP_RETCODE checkCons(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Bool checklprows, SCIP_Bool printreason, SCIP_Bool *violated)
#define DEFAULT_PRESOLUSEHASHING
static SCIP_RETCODE consdataFree(SCIP *scip, SCIP_CONSDATA **consdata, SCIP_EVENTHDLR *eventhdlr)
static SCIP_RETCODE consdataDropWatchedEvents(SCIP *scip, SCIP_CONSDATA *consdata, SCIP_EVENTHDLR *eventhdlr, int pos, int filterpos)
#define MINGAINPERNMINCOMPARISONS
static SCIP_RETCODE analyzeConflictZero(SCIP *scip, SCIP_CONS *cons)
#define CONSHDLR_PROPFREQ
#define DEFAULT_ENFORCECUTS
#define CONSHDLR_PRESOLTIMING
static void consdataSort(SCIP_CONSDATA *consdata)
static SCIP_RETCODE addNlrow(SCIP *scip, SCIP_CONS *cons)
#define CONSHDLR_EAGERFREQ
static SCIP_RETCODE conshdlrdataCreate(SCIP *scip, SCIP_CONSHDLRDATA **conshdlrdata, SCIP_EVENTHDLR *eventhdlr)
#define CONSHDLR_ENFOPRIORITY
static SCIP_RETCODE applyFixings(SCIP *scip, SCIP_CONS *cons, SCIP_EVENTHDLR *eventhdlr, int *nchgcoefs)
static SCIP_RETCODE resolvePropagation(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *infervar, PROPRULE proprule, SCIP_BDCHGIDX *bdchgidx, SCIP_RESULT *result)
#define CONSHDLR_DELAYSEPA
static SCIP_RETCODE mergeMultiples(SCIP *scip, SCIP_CONS *cons, SCIP_EVENTHDLR *eventhdlr, unsigned char **entries, int *nentries, int *nfixedvars, int *nchgcoefs, int *ndelconss)
static SCIP_RETCODE enforceConstraint(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_RESULT *result)
#define DEFAULT_AGGRLINEARIZATION
static SCIP_RETCODE propagateCons(SCIP *scip, SCIP_CONS *cons, SCIP_EVENTHDLR *eventhdlr, SCIP_Bool *cutoff, int *nfixedvars, int *nupgdconss)
#define CONSHDLR_DELAYPROP
static SCIP_RETCODE consdataCatchEvents(SCIP *scip, SCIP_CONSDATA *consdata, SCIP_EVENTHDLR *eventhdlr)
Constraint handler for AND constraints, .
Constraint handler for linear constraints in their most general form, .
Constraint handler for logicor constraints (equivalent to set covering, but algorithms are suited fo...
constraint handler for pseudoboolean constraints
#define ARTIFICIALVARNAMEPREFIX
Constraint handler for the set partitioning / packing / covering constraints .
#define SCIP_CALL_FINALLY(x, y)
product expression handler
variable expression handler
SCIP_RETCODE SCIPcreateConsAnd(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR *resvar, int nvars, SCIP_VAR **vars, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_RETCODE SCIPchgAndConsCheckFlagWhenUpgr(SCIP *scip, SCIP_CONS *cons, SCIP_Bool flag)
SCIP_VAR * SCIPgetResultantAnd(SCIP *scip, SCIP_CONS *cons)
int SCIPgetNVarsAnd(SCIP *scip, SCIP_CONS *cons)
SCIP_RETCODE SCIPchgAndConsRemovableFlagWhenUpgr(SCIP *scip, SCIP_CONS *cons, SCIP_Bool flag)
SCIP_RETCODE SCIPcreateConsSetpack(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_RETCODE SCIPsortAndCons(SCIP *scip, SCIP_CONS *cons)
SCIP_Bool SCIPisAndConsSorted(SCIP *scip, SCIP_CONS *cons)
SCIP_RETCODE SCIPcreateConsLinear(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Real *vals, SCIP_Real lhs, SCIP_Real rhs, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_RETCODE SCIPcreateConsSetpart(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_VAR ** SCIPgetVarsAnd(SCIP *scip, SCIP_CONS *cons)
SCIP_RETCODE SCIPcreateConsLogicor(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_RETCODE SCIPcreateConsBasicAnd(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR *resvar, int nvars, SCIP_VAR **vars)
SCIP_RETCODE SCIPincludeConshdlrAnd(SCIP *scip)
SCIP_RETCODE SCIPgetVarCopy(SCIP *sourcescip, SCIP *targetscip, SCIP_VAR *sourcevar, SCIP_VAR **targetvar, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_Bool global, SCIP_Bool *success)
SCIP_RETCODE SCIPcreateExprVar(SCIP *scip, SCIP_EXPR **expr, SCIP_VAR *var, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_RETCODE SCIPcreateExprProduct(SCIP *scip, SCIP_EXPR **expr, int nchildren, SCIP_EXPR **children, SCIP_Real coefficient, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
void SCIPgmlWriteNode(FILE *file, unsigned int id, const char *label, const char *nodetype, const char *fillcolor, const char *bordercolor)
void SCIPgmlWriteClosing(FILE *file)
void SCIPgmlWriteOpening(FILE *file, SCIP_Bool directed)
void SCIPgmlWriteArc(FILE *file, unsigned int source, unsigned int target, const char *label, const char *color)
SCIP_Bool SCIPisTransformed(SCIP *scip)
SCIP_Bool SCIPisStopped(SCIP *scip)
SCIP_STAGE SCIPgetStage(SCIP *scip)
int SCIPgetNIntVars(SCIP *scip)
int SCIPgetNImplVars(SCIP *scip)
int SCIPgetNContVars(SCIP *scip)
SCIP_RETCODE SCIPgetVarsData(SCIP *scip, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
int SCIPgetNVars(SCIP *scip)
SCIP_RETCODE SCIPaddCons(SCIP *scip, SCIP_CONS *cons)
SCIP_RETCODE SCIPdelCons(SCIP *scip, SCIP_CONS *cons)
int SCIPgetNBinVars(SCIP *scip)
void SCIPhashmapFree(SCIP_HASHMAP **hashmap)
int SCIPhashmapGetImageInt(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapCreate(SCIP_HASHMAP **hashmap, BMS_BLKMEM *blkmem, int mapsize)
SCIP_RETCODE SCIPhashmapInsertInt(SCIP_HASHMAP *hashmap, void *origin, int image)
void SCIPhashtableFree(SCIP_HASHTABLE **hashtable)
#define SCIPhashFour(a, b, c, d)
SCIP_RETCODE SCIPhashtableCreate(SCIP_HASHTABLE **hashtable, BMS_BLKMEM *blkmem, int tablesize, SCIP_DECL_HASHGETKEY((*hashgetkey)), SCIP_DECL_HASHKEYEQ((*hashkeyeq)), SCIP_DECL_HASHKEYVAL((*hashkeyval)), void *userptr)
void * SCIPhashtableRetrieve(SCIP_HASHTABLE *hashtable, void *key)
SCIP_RETCODE SCIPhashtableInsert(SCIP_HASHTABLE *hashtable, void *element)
SCIP_RETCODE SCIPdelConsLocal(SCIP *scip, SCIP_CONS *cons)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
#define SCIPdebugMsgPrint
SCIP_RETCODE SCIPaddBoolParam(SCIP *scip, const char *name, const char *desc, SCIP_Bool *valueptr, SCIP_Bool isadvanced, SCIP_Bool defaultvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPinitConflictAnalysis(SCIP *scip, SCIP_CONFTYPE conftype, SCIP_Bool iscutoffinvolved)
SCIP_Bool SCIPisConflictAnalysisApplicable(SCIP *scip)
SCIP_RETCODE SCIPaddConflictBinvar(SCIP *scip, SCIP_VAR *var)
SCIP_RETCODE SCIPanalyzeConflictCons(SCIP *scip, SCIP_CONS *cons, SCIP_Bool *success)
void SCIPconshdlrSetData(SCIP_CONSHDLR *conshdlr, SCIP_CONSHDLRDATA *conshdlrdata)
SCIP_RETCODE SCIPsetConshdlrFree(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrActive(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrPresol(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSPRESOL((*conspresol)), int maxprerounds, SCIP_PRESOLTIMING presoltiming)
SCIP_RETCODE SCIPsetConshdlrInitpre(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrSepa(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSSEPALP((*conssepalp)), SCIP_DECL_CONSSEPASOL((*conssepasol)), int sepafreq, int sepapriority, SCIP_Bool delaysepa)
SCIP_RETCODE SCIPsetConshdlrProp(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSPROP((*consprop)), int propfreq, SCIP_Bool delayprop, SCIP_PROPTIMING proptiming)
SCIP_RETCODE SCIPsetConshdlrEnforelax(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPincludeConshdlrBasic(SCIP *scip, SCIP_CONSHDLR **conshdlrptr, const char *name, const char *desc, int enfopriority, int chckpriority, int eagerfreq, SCIP_Bool needscons, SCIP_DECL_CONSENFOLP((*consenfolp)), SCIP_DECL_CONSENFOPS((*consenfops)), SCIP_DECL_CONSCHECK((*conscheck)), SCIP_DECL_CONSLOCK((*conslock)), SCIP_CONSHDLRDATA *conshdlrdata)
SCIP_RETCODE SCIPsetConshdlrParse(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrGetVars(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrPrint(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
const char * SCIPconshdlrGetName(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPsetConshdlrCopy(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSHDLRCOPY((*conshdlrcopy)),)
SCIP_CONSHDLR * SCIPfindConshdlr(SCIP *scip, const char *name)
SCIP_RETCODE SCIPsetConshdlrDelete(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrInitsol(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrDeactive(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_CONSHDLRDATA * SCIPconshdlrGetData(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPsetConshdlrTrans(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrResprop(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrExitpre(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrExitsol(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrInitlp(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_RETCODE SCIPsetConshdlrGetNVars(SCIP *scip, SCIP_CONSHDLR *conshdlr,)
SCIP_CONSDATA * SCIPconsGetData(SCIP_CONS *cons)
int SCIPconsGetPos(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsDynamic(SCIP_CONS *cons)
SCIP_CONSHDLR * SCIPconsGetHdlr(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsInitial(SCIP_CONS *cons)
SCIP_RETCODE SCIPprintCons(SCIP *scip, SCIP_CONS *cons, FILE *file)
SCIP_Bool SCIPconsIsChecked(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsDeleted(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsTransformed(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsEnforced(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsActive(SCIP_CONS *cons)
SCIP_RETCODE SCIPcreateCons(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_CONSHDLR *conshdlr, SCIP_CONSDATA *consdata, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_Bool SCIPconsIsPropagated(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsLocal(SCIP_CONS *cons)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_RETCODE SCIPresetConsAge(SCIP *scip, SCIP_CONS *cons)
SCIP_Bool SCIPconsIsModifiable(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsAdded(SCIP_CONS *cons)
SCIP_RETCODE SCIPupdateConsFlags(SCIP *scip, SCIP_CONS *cons0, SCIP_CONS *cons1)
SCIP_Bool SCIPconsIsStickingAtNode(SCIP_CONS *cons)
SCIP_RETCODE SCIPreleaseCons(SCIP *scip, SCIP_CONS **cons)
SCIP_Bool SCIPconsIsSeparated(SCIP_CONS *cons)
SCIP_RETCODE SCIPincConsAge(SCIP *scip, SCIP_CONS *cons)
SCIP_Bool SCIPconsIsRemovable(SCIP_CONS *cons)
SCIP_RETCODE SCIPaddRow(SCIP *scip, SCIP_ROW *row, SCIP_Bool forcecut, SCIP_Bool *infeasible)
SCIP_RETCODE SCIPincludeEventhdlrBasic(SCIP *scip, SCIP_EVENTHDLR **eventhdlrptr, const char *name, const char *desc, SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
SCIP_EVENTTYPE SCIPeventGetType(SCIP_EVENT *event)
SCIP_RETCODE SCIPcatchVarEvent(SCIP *scip, SCIP_VAR *var, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
SCIP_RETCODE SCIPdropVarEvent(SCIP *scip, SCIP_VAR *var, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int filterpos)
SCIP_RETCODE SCIPreleaseExpr(SCIP *scip, SCIP_EXPR **expr)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
int SCIPcalcMemGrowSize(SCIP *scip, int num)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPreallocBufferArray(scip, ptr, num)
#define SCIPfreeBufferArray(scip, ptr)
#define SCIPduplicateBufferArray(scip, ptr, source, num)
#define SCIPallocBlockMemoryArray(scip, ptr, num)
#define SCIPreallocBlockMemoryArray(scip, ptr, oldnum, newnum)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
#define SCIPduplicateBlockMemoryArray(scip, ptr, source, num)
SCIP_RETCODE SCIPdelNlRow(SCIP *scip, SCIP_NLROW *nlrow)
SCIP_RETCODE SCIPaddNlRow(SCIP *scip, SCIP_NLROW *nlrow)
SCIP_Bool SCIPisNLPConstructed(SCIP *scip)
SCIP_RETCODE SCIPreleaseNlRow(SCIP *scip, SCIP_NLROW **nlrow)
SCIP_Bool SCIPnlrowIsInNLP(SCIP_NLROW *nlrow)
SCIP_RETCODE SCIPcreateNlRow(SCIP *scip, SCIP_NLROW **nlrow, const char *name, SCIP_Real constant, int nlinvars, SCIP_VAR **linvars, SCIP_Real *lincoefs, SCIP_EXPR *expr, SCIP_Real lhs, SCIP_Real rhs, SCIP_EXPRCURV curvature)
SCIP_Bool SCIPinProbing(SCIP *scip)
SCIP_RETCODE SCIPaddVarsToRowSameCoef(SCIP *scip, SCIP_ROW *row, int nvars, SCIP_VAR **vars, SCIP_Real val)
SCIP_RETCODE SCIPcreateEmptyRowCons(SCIP *scip, SCIP_ROW **row, SCIP_CONS *cons, const char *name, SCIP_Real lhs, SCIP_Real rhs, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool removable)
SCIP_RETCODE SCIPaddVarToRow(SCIP *scip, SCIP_ROW *row, SCIP_VAR *var, SCIP_Real val)
SCIP_Real SCIPgetRowSolFeasibility(SCIP *scip, SCIP_ROW *row, SCIP_SOL *sol)
SCIP_RETCODE SCIPreleaseRow(SCIP *scip, SCIP_ROW **row)
SCIP_Bool SCIProwIsInLP(SCIP_ROW *row)
void SCIPupdateSolConsViolation(SCIP *scip, SCIP_SOL *sol, SCIP_Real absviol, SCIP_Real relviol)
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisGE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisPositive(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisLE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisInfinity(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisFeasNegative(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisNegative(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasPositive(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPinRepropagation(SCIP *scip)
int SCIPgetDepth(SCIP *scip)
SCIP_RETCODE SCIPcutoffNode(SCIP *scip, SCIP_NODE *node)
SCIP_NODE * SCIPgetRootNode(SCIP *scip)
SCIP_RETCODE SCIPlockVarCons(SCIP *scip, SCIP_VAR *var, SCIP_CONS *cons, SCIP_Bool lockdown, SCIP_Bool lockup)
void SCIPvarsGetProbvar(SCIP_VAR **vars, int nvars)
SCIP_VAR * SCIPvarGetNegatedVar(SCIP_VAR *var)
SCIP_Bool SCIPvarIsActive(SCIP_VAR *var)
SCIP_Bool SCIPvarIsBinary(SCIP_VAR *var)
SCIP_RETCODE SCIPgetTransformedVars(SCIP *scip, int nvars, SCIP_VAR **vars, SCIP_VAR **transvars)
SCIP_VARSTATUS SCIPvarGetStatus(SCIP_VAR *var)
int SCIPvarGetNLocksUpType(SCIP_VAR *var, SCIP_LOCKTYPE locktype)
SCIP_Bool SCIPdoNotAggr(SCIP *scip)
SCIP_RETCODE SCIPvarGetAggregatedObj(SCIP_VAR *var, SCIP_Real *aggrobj)
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_RETCODE SCIPgetBinvarRepresentatives(SCIP *scip, int nvars, SCIP_VAR **vars, SCIP_VAR **repvars, SCIP_Bool *negated)
SCIP_Bool SCIPvarIsTransformed(SCIP_VAR *var)
SCIP_RETCODE SCIPparseVarsList(SCIP *scip, const char *str, SCIP_VAR **vars, int *nvars, int varssize, int *requiredsize, char **endptr, char delimiter, SCIP_Bool *success)
SCIP_RETCODE SCIPaggregateVars(SCIP *scip, SCIP_VAR *varx, SCIP_VAR *vary, SCIP_Real scalarx, SCIP_Real scalary, SCIP_Real rhs, SCIP_Bool *infeasible, SCIP_Bool *redundant, SCIP_Bool *aggregated)
SCIP_VAR * SCIPvarGetProbvar(SCIP_VAR *var)
SCIP_RETCODE SCIPparseVarName(SCIP *scip, const char *str, SCIP_VAR **var, char **endptr)
SCIP_VARTYPE SCIPvarGetType(SCIP_VAR *var)
SCIP_Real SCIPvarGetUbGlobal(SCIP_VAR *var)
int SCIPvarGetIndex(SCIP_VAR *var)
SCIP_RETCODE SCIPaddVarLocksType(SCIP *scip, SCIP_VAR *var, SCIP_LOCKTYPE locktype, int nlocksdown, int nlocksup)
SCIP_RETCODE SCIPunlockVarCons(SCIP *scip, SCIP_VAR *var, SCIP_CONS *cons, SCIP_Bool lockdown, SCIP_Bool lockup)
SCIP_Real SCIPgetVarUbAtIndex(SCIP *scip, SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
int SCIPvarGetProbindex(SCIP_VAR *var)
const char * SCIPvarGetName(SCIP_VAR *var)
SCIP_RETCODE SCIPreleaseVar(SCIP *scip, SCIP_VAR **var)
SCIP_RETCODE SCIPchgVarType(SCIP *scip, SCIP_VAR *var, SCIP_VARTYPE vartype, SCIP_Bool *infeasible)
SCIP_RETCODE SCIPgetNegatedVar(SCIP *scip, SCIP_VAR *var, SCIP_VAR **negvar)
SCIP_RETCODE SCIPaddVarImplication(SCIP *scip, SCIP_VAR *var, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_BOUNDTYPE impltype, SCIP_Real implbound, SCIP_Bool *infeasible, int *nbdchgs)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
SCIP_Bool SCIPvarIsNegated(SCIP_VAR *var)
SCIP_Real SCIPvarGetLbGlobal(SCIP_VAR *var)
SCIP_RETCODE SCIPmarkDoNotMultaggrVar(SCIP *scip, SCIP_VAR *var)
SCIP_RETCODE SCIPfixVar(SCIP *scip, SCIP_VAR *var, SCIP_Real fixedval, SCIP_Bool *infeasible, SCIP_Bool *fixed)
SCIP_Real SCIPgetVarLbAtIndex(SCIP *scip, SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
int SCIPvarCompare(SCIP_VAR *var1, SCIP_VAR *var2)
SCIP_RETCODE SCIPvarGetProbvarBinary(SCIP_VAR **var, SCIP_Bool *negated)
SCIP_RETCODE SCIPinferBinvarCons(SCIP *scip, SCIP_VAR *var, SCIP_Bool fixedval, SCIP_CONS *infercons, int inferinfo, SCIP_Bool *infeasible, SCIP_Bool *tightened)
SCIP_RETCODE SCIPwriteVarName(SCIP *scip, FILE *file, SCIP_VAR *var, SCIP_Bool type)
SCIP_RETCODE SCIPgetBinvarRepresentative(SCIP *scip, SCIP_VAR *var, SCIP_VAR **repvar, SCIP_Bool *negated)
SCIP_RETCODE SCIPwriteVarsList(SCIP *scip, FILE *file, SCIP_VAR **vars, int nvars, SCIP_Bool type, char delimiter)
SCIP_Bool SCIPvarsHaveCommonClique(SCIP_VAR *var1, SCIP_Bool value1, SCIP_VAR *var2, SCIP_Bool value2, SCIP_Bool regardimplics)
int SCIPvarGetNLocksDownType(SCIP_VAR *var, SCIP_LOCKTYPE locktype)
SCIP_RETCODE SCIPgetTransformedVar(SCIP *scip, SCIP_VAR *var, SCIP_VAR **transvar)
SCIP_RETCODE SCIPcaptureVar(SCIP *scip, SCIP_VAR *var)
SCIP_Bool SCIPallowStrongDualReds(SCIP *scip)
SCIP_Bool SCIPsortedvecFindPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), void *val, int len, int *pos)
void SCIPsortPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), int len)
int SCIPsnprintf(char *t, int len, const char *s,...)
assert(minobj< SCIPgetCutoffbound(scip))
static SCIP_Bool propagate
memory allocation routines
#define BMScopyMemoryArray(ptr, source, num)
#define BMSclearMemoryArray(ptr, num)
struct BMS_BlkMem BMS_BLKMEM
BMS_BLKMEM * SCIPblkmem(SCIP *scip)
public methods for managing constraints
public methods for managing events
public methods for LP management
public methods for message output
#define SCIPdebugPrintCons(x, y, z)
public data structures and miscellaneous methods
methods for sorting joint arrays of various types
public methods for problem variables
public methods for conflict handler plugins and conflict analysis
public methods for constraint handler plugins and constraints
public methods for problem copies
public methods for cuts and aggregation rows
public methods for event handler plugins and event handlers
public functions to work with algebraic expressions
public methods for the LP relaxation, rows and columns
public methods for memory management
public methods for message handling
public methods for nonlinear relaxation
public methods for numerical tolerances
public methods for SCIP parameter handling
public methods for global and local (sub)problems
public methods for the probing mode
public methods for solutions
public methods for the branch-and-bound tree
public methods for SCIP variables
@ SCIP_CONFTYPE_PROPAGATION
#define SCIP_DECL_CONSENFOLP(x)
#define SCIP_DECL_CONSINITPRE(x)
#define SCIP_DECL_CONSDELETE(x)
#define SCIP_DECL_CONSGETVARS(x)
#define SCIP_DECL_CONSINITSOL(x)
#define SCIP_DECL_CONSPRINT(x)
struct SCIP_ConshdlrData SCIP_CONSHDLRDATA
#define SCIP_DECL_CONSSEPALP(x)
#define SCIP_DECL_CONSENFORELAX(x)
#define SCIP_DECL_CONSPROP(x)
#define SCIP_DECL_CONSGETNVARS(x)
#define SCIP_DECL_CONSRESPROP(x)
#define SCIP_DECL_CONSACTIVE(x)
#define SCIP_DECL_CONSENFOPS(x)
#define SCIP_DECL_CONSPARSE(x)
#define SCIP_DECL_CONSTRANS(x)
#define SCIP_DECL_CONSDEACTIVE(x)
#define SCIP_DECL_CONSPRESOL(x)
#define SCIP_DECL_CONSINITLP(x)
#define SCIP_DECL_CONSEXITPRE(x)
#define SCIP_DECL_CONSLOCK(x)
#define SCIP_DECL_CONSCOPY(x)
struct SCIP_ConsData SCIP_CONSDATA
#define SCIP_DECL_CONSCHECK(x)
#define SCIP_DECL_CONSHDLRCOPY(x)
#define SCIP_DECL_CONSEXITSOL(x)
#define SCIP_DECL_CONSFREE(x)
#define SCIP_DECL_CONSSEPASOL(x)
#define SCIP_EVENTTYPE_BOUNDCHANGED
struct SCIP_EventData SCIP_EVENTDATA
#define SCIP_EVENTTYPE_UBTIGHTENED
#define SCIP_DECL_EVENTEXEC(x)
#define SCIP_EVENTTYPE_LBRELAXED
#define SCIP_EVENTTYPE_LBTIGHTENED
#define SCIP_EVENTTYPE_UBRELAXED
#define SCIP_DECL_HASHKEYEQ(x)
#define SCIP_DECL_HASHGETKEY(x)
#define SCIP_DECL_HASHKEYVAL(x)
enum SCIP_Result SCIP_RESULT
enum SCIP_Retcode SCIP_RETCODE
@ SCIP_STAGE_EXITPRESOLVE
#define SCIP_PRESOLTIMING_EXHAUSTIVE