FILE* enfologfile =
NULL;
161structSCIP_Expr_OwnerData
169 intmonotonicitysize;
173 unsigned intpropboundstag;
179 unsigned intlastenforced;
180 unsigned intnactivityusesprop;
181 unsigned intnactivityusessepa;
182 unsigned intnauxvaruses;
189 unsigned intviolscoretag;
220 unsigned intispropagated:1;
221 unsigned intissimplified:1;
248structSCIP_ConshdlrData
260 intconsupgradessize;
273 unsigned intenforound;
281 unsigned intcurpropboundstag;
294 intreformbinprodsfac;
304 charrownotremovable;
307 intbranchauxmindepth;
318 charbranchviolsplit;
321 charlinearizeheursol;
343 intbilinmaxnauxexprs;
347 charbranchpscostupdatestrategy;
352 intnewsoleventfilterpos;
394assert(expr !=
NULL);
397assert(mydata !=
NULL);
399 if( mydata->auxvar ==
NULL)
411assert(mydata->auxvar ==
NULL);
432assert(mydata !=
NULL);
438assert(mydata->auxvar ==
NULL);
441mydata->nactivityusesprop = 0;
442mydata->nactivityusessepa = 0;
443mydata->nauxvaruses = 0;
447 for( e = 0; e < mydata->nenfos; ++e )
451assert(mydata->enfos[e] !=
NULL);
453nlhdlr = mydata->enfos[e]->nlhdlr;
454assert(nlhdlr !=
NULL);
456 if( mydata->enfos[e]->issepainit )
459 SCIP_CALL( SCIPnlhdlrExitsepa(
scip, nlhdlr, expr, mydata->enfos[e]->nlhdlrexprdata) );
460mydata->enfos[e]->issepainit =
FALSE;
464 if( mydata->enfos[e]->nlhdlrexprdata !=
NULL)
466 SCIP_CALL( SCIPnlhdlrFreeexprdata(
scip, nlhdlr, expr, &mydata->enfos[e]->nlhdlrexprdata) );
467assert(mydata->enfos[e]->nlhdlrexprdata ==
NULL);
488assert(expr !=
NULL);
489assert(ownerdata !=
NULL);
490assert(*ownerdata !=
NULL);
493assert((*ownerdata)->nlockspos == 0);
494assert((*ownerdata)->nlocksneg == 0);
499assert((*ownerdata)->nenfos <= 0);
500assert((*ownerdata)->auxvar ==
NULL);
508assert((*ownerdata)->nconss == 0);
510assert((*ownerdata)->filterpos == -1);
516assert(conshdlrdata !=
NULL);
519assert(var !=
NULL);
539assert(ownerdata !=
NULL);
542 if( ownerdata->nenfos > 0 )
547 for( i = 0; i < ownerdata->nenfos; ++i )
556 if( i < ownerdata->nenfos-1 )
564 if( ownerdata->auxvar !=
NULL)
583assert(expr !=
NULL);
584assert(ownerdata !=
NULL);
587assert(conshdlrdata !=
NULL);
605assert(expr !=
NULL);
606assert(ownerdata !=
NULL);
609(*ownerdata)->nenfos = -1;
617(*ownerdata)->filterpos = -1;
622assert(conshdlrdata !=
NULL);
640(*ownerdata)->filterpos = -2;
643*ownerfree = exprownerFree;
644*ownerprint = exprownerPrint;
645*ownerevalactivity = exprownerEvalactivity;
659assert(conshdlr !=
NULL);
660assert(expr !=
NULL);
661assert(var !=
NULL);
670assert(*expr !=
NULL);
689assert(sourcescip !=
NULL);
690assert(targetscip !=
NULL);
691assert(sourceexpr !=
NULL);
692assert(targetexpr !=
NULL);
693assert(*targetexpr ==
NULL);
694assert(mapexprdata !=
NULL);
712assert(sourcescip !=
NULL);
713assert(targetscip !=
NULL);
714assert(sourceexpr !=
NULL);
715assert(targetexpr !=
NULL);
716assert(*targetexpr ==
NULL);
717assert(mapexprdata !=
NULL);
724assert(var !=
NULL);
728assert(var !=
NULL);
747assert(consdata !=
NULL);
750 if( consdata->varexprs !=
NULL)
753assert(consdata->varexprs ==
NULL);
754assert(consdata->nvarexprs == 0);
757 if( consdata->issimplified )
773assert(varexprssize >= consdata->nvarexprs);
776 if( varexprssize > consdata->nvarexprs )
782assert(conshdlrdata !=
NULL);
783assert(conshdlrdata->var2expr !=
NULL);
788 for( i = 0; i < consdata->nvarexprs; ++i )
808assert(consdata !=
NULL);
811 if( consdata->varexprs ==
NULL)
814assert(consdata->varexprs !=
NULL);
815assert(consdata->nvarexprs >= 0);
816assert(!consdata->catchedevents);
819 for( i = 0; i < consdata->nvarexprs; ++i )
821assert(consdata->varexprs[i] !=
NULL);
823assert(consdata->varexprs[i] ==
NULL);
828consdata->varexprs =
NULL;
829consdata->nvarexprs = 0;
848assert(var !=
NULL);
851assert(conshdlrdata !=
NULL);
853 if( conshdlrdata->globalbounds )
876 switch( conshdlrdata->varboundrelax )
891lb =
MAX(bnd, lb - conshdlrdata->varboundrelaxamount);
898ub =
MIN(bnd, ub + conshdlrdata->varboundrelaxamount);
911lb -= conshdlrdata->varboundrelaxamount;
914ub += conshdlrdata->varboundrelaxamount;
932lb =
MAX(bnd, lb -
MIN(conshdlrdata->varboundrelaxamount *
MAX(1.0,
REALABS(lb)), 0.001 *
REALABS(ub-lb)));
938ub =
MIN(bnd, ub +
MIN(conshdlrdata->varboundrelaxamount *
MAX(1.0,
REALABS(ub)), 0.001 *
REALABS(ub-lb)));
946 SCIPerrorMessage(
"Unsupported value '%c' for varboundrelax option.\n", conshdlrdata->varboundrelax);
972assert(consdata1 !=
NULL);
973assert(consdata2 !=
NULL);
975 returnconsdata1->consindex - consdata2->consindex;
990assert(eventdata !=
NULL);
1000assert(ownerdata !=
NULL);
1002assert(ownerdata->nconss > 0);
1003assert(ownerdata->conss !=
NULL);
1006boundtightened =
TRUE;
1015boundtightened =
TRUE;
1025boundtightened =
TRUE;
1032 if( boundtightened )
1037 for( c = 0; c < ownerdata->nconss; ++c )
1039assert(ownerdata->conss[c] !=
NULL);
1047consdata->ispropagated =
FALSE;
1053consdata->issimplified =
FALSE;
1066assert(conshdlrdata !=
NULL);
1069++conshdlrdata->curboundstag;
1070assert(conshdlrdata->curboundstag > 0);
1074conshdlrdata->lastboundrelax = conshdlrdata->curboundstag;
1079 SCIP_CALL( SCIPcallExprInteval(
scip, expr, &activity, conshdlrdata->intevalvar, conshdlrdata) );
1105assert(eventhdlr !=
NULL);
1106assert(expr !=
NULL);
1108assert(cons !=
NULL);
1111assert(ownerdata !=
NULL);
1117 for( i = 0; i < ownerdata->nconss; ++i )
1118assert(ownerdata->conss[i] != cons);
1124ownerdata->conss[ownerdata->nconss++] = cons;
1128 if( ownerdata->nconss <= 1 )
1129ownerdata->consssorted =
TRUE;
1130 else if( ownerdata->consssorted )
1131ownerdata->consssorted = compIndexConsNonlinear(ownerdata->conss[ownerdata->nconss-2], ownerdata->conss[ownerdata->nconss-1]) < 0;
1134 if( ownerdata->filterpos < 0 )
1138assert(ownerdata->nconss == 1);
1143assert(ownerdata->filterpos >= 0);
1162assert(eventhdlr !=
NULL);
1163assert(cons !=
NULL);
1166assert(consdata !=
NULL);
1167assert(consdata->varexprs !=
NULL);
1168assert(consdata->nvarexprs >= 0);
1171 if( consdata->catchedevents )
1175assert(conshdlrdata !=
NULL);
1177assert(conshdlrdata->intevalvar == intEvalVarBoundTightening);
1182 for( i = 0; i < consdata->nvarexprs; ++i )
1184expr = consdata->varexprs[i];
1186assert(expr !=
NULL);
1197 SCIP_CALL( SCIPcallExprInteval(
scip, expr, &activity, intEvalVarBoundTightening, conshdlrdata) );
1206consdata->catchedevents =
TRUE;
1227assert(eventhdlr !=
NULL);
1228assert(expr !=
NULL);
1230assert(cons !=
NULL);
1233assert(ownerdata !=
NULL);
1234assert(ownerdata->nconss > 0);
1236 if( ownerdata->conss[ownerdata->nconss-1] == cons )
1238pos = ownerdata->nconss-1;
1242 if( !ownerdata->consssorted )
1244 SCIPsortPtr((
void**)ownerdata->conss, compIndexConsNonlinear, ownerdata->nconss);
1245ownerdata->consssorted =
TRUE;
1248 if( !
SCIPsortedvecFindPtr((
void**)ownerdata->conss, compIndexConsNonlinear, cons, ownerdata->nconss, &pos) )
1253assert(pos >= 0 && pos < ownerdata->nconss);
1255assert(ownerdata->conss[pos] == cons);
1258 if( pos < ownerdata->nconss-1 )
1260ownerdata->conss[pos] = ownerdata->conss[ownerdata->nconss-1];
1261ownerdata->consssorted =
FALSE;
1263--ownerdata->nconss;
1266 if( ownerdata->nconss == 0 )
1270assert(ownerdata->filterpos >= 0);
1275ownerdata->filterpos = -1;
1292assert(eventhdlr !=
NULL);
1293assert(cons !=
NULL);
1296assert(consdata !=
NULL);
1299 if( !consdata->catchedevents )
1302assert(consdata->varexprs !=
NULL);
1303assert(consdata->nvarexprs >= 0);
1307 for( i = consdata->nvarexprs - 1; i >= 0; --i )
1309assert(consdata->varexprs[i] !=
NULL);
1314consdata->catchedevents =
FALSE;
1358assert(conshdlr !=
NULL);
1359assert(expr !=
NULL);
1362assert(conshdlrdata !=
NULL);
1366 SCIPerrorMessage(
"Locally valid nonlinear constraints are not supported, yet.\n");
1373 SCIPerrorMessage(
"Non-initial nonlinear constraints are not supported, yet.\n");
1387consdata->expr = expr;
1390consdata->lhs = lhs;
1391consdata->rhs = rhs;
1392consdata->consindex = conshdlrdata->lastconsindex++;
1396 SCIP_CALL(
SCIPcreateCons(
scip, cons, name, conshdlr, consdata, initial, separate, enforce, check, propagate,
1397local, modifiable, dynamic, removable,
FALSE) );
1426assert(expr !=
NULL);
1429assert(ownerdata !=
NULL);
1430assert(ownerdata->auxvar !=
NULL);
1434 if( violunder !=
NULL)
1436 if( violover !=
NULL)
1445 if( violunder !=
NULL)
1446*violunder =
FALSE;
1447 if( violover !=
NULL)
1454 if( violunder !=
NULL)
1456 if( violover !=
NULL)
1461 if( violunder !=
NULL)
1462*violunder =
FALSE;
1463 if( violover !=
NULL)
1493assert(expr !=
NULL);
1496assert(ownerdata !=
NULL);
1497assert(ownerdata->auxvar !=
NULL);
1501 if( violunder !=
NULL)
1503 if( violover !=
NULL)
1510 if( ownerdata->nlocksneg > 0 && auxvarvalue > auxvalue )
1512 if( violunder !=
NULL)
1513*violunder =
FALSE;
1514 if( violover !=
NULL)
1516 returnauxvarvalue - auxvalue;
1519 if( ownerdata->nlockspos > 0 && auxvalue > auxvarvalue )
1521 if( violunder !=
NULL)
1523 if( violover !=
NULL)
1525 returnauxvalue - auxvarvalue;
1528 if( violunder !=
NULL)
1529*violunder =
FALSE;
1530 if( violover !=
NULL)
1549assert(cons !=
NULL);
1552assert(consdata !=
NULL);
1583assert(cons !=
NULL);
1586assert(consdata !=
NULL);
1588 return MAX3(0.0, consdata->lhsviol, consdata->rhsviol);
1609assert(cons !=
NULL);
1610assert(viol !=
NULL);
1613assert(conshdlr !=
NULL);
1616assert(conshdlrdata !=
NULL);
1620 if( conshdlrdata->violscale ==
'n')
1627assert(consdata !=
NULL);
1629 if( conshdlrdata->violscale ==
'a')
1634 if( consdata->lhsviol > 0.0 &&
REALABS(consdata->lhs) > scale )
1637scale =
REALABS(consdata->lhs);
1639 else if( consdata->rhsviol > 0.0 &&
REALABS(consdata->rhs) > scale )
1642scale =
REALABS(consdata->rhs);
1650assert(conshdlrdata->violscale ==
'g');
1651 if( soltag == 0L || consdata->gradnormsoltag != soltag )
1657consdata->gradnorm = 0.0;
1666 for( i = 0; i < consdata->nvarexprs; ++i )
1675consdata->gradnorm = 0.0;
1679consdata->gradnorm += deriv*deriv;
1682consdata->gradnorm = sqrt(consdata->gradnorm);
1683consdata->gradnormsoltag = soltag;
1686*viol /=
MAX(1.0, consdata->gradnorm);
1716assert(cons !=
NULL);
1719assert(consdata !=
NULL);
1721consdata->linvarincr =
NULL;
1722consdata->linvardecr =
NULL;
1723consdata->linvarincrcoef = 0.0;
1724consdata->linvardecrcoef = 0.0;
1735assert(child !=
NULL);
1760 if( (consdata->linvardecr ==
NULL) ||
1763consdata->linvardecr = var;
1764consdata->linvardecrcoef = coef;
1773 if( (consdata->linvarincr ==
NULL) ||
1776consdata->linvarincr = var;
1777consdata->linvarincrcoef = coef;
1783assert(consdata->linvarincr ==
NULL|| consdata->linvarincrcoef != 0.0);
1784assert(consdata->linvardecr ==
NULL|| consdata->linvardecrcoef != 0.0);
1786 if( consdata->linvarincr !=
NULL)
1790 if( consdata->linvardecr !=
NULL)
1816assert(conshdlr !=
NULL);
1817assert(conss !=
NULL|| nconss == 0);
1818assert(success !=
NULL);
1827assert(conshdlrdata !=
NULL);
1838 SCIPdebugMsg(
scip,
"attempt to make solution from <%s> feasible by shifting linear variable\n",
1841 for( c = 0; c < nconss; ++c )
1848assert(consdata !=
NULL);
1852viol = consdata->lhsviol;
1854viol = -consdata->rhsviol;
1858 if( consdata->linvarincr !=
NULL&&
1859((viol > 0.0 && consdata->linvarincrcoef > 0.0) || (viol < 0.0 && consdata->linvarincrcoef < 0.0)) )
1861 SCIP_VAR* var = consdata->linvarincr;
1864delta = viol / consdata->linvarincrcoef;
1865assert(delta > 0.0);
1871delta =
MIN(
MAX(0.0, gap), delta);
1880 SCIPdebugMsg(
scip,
"increase <%s> by %g to %g to remedy lhs-violation %g of cons <%s>\n",
1884viol -= consdata->linvarincrcoef * delta;
1890assert(viol != 0.0);
1891 if( consdata->linvardecr !=
NULL&&
1892((viol > 0.0 && consdata->linvardecrcoef < 0.0) || (viol < 0.0 && consdata->linvardecrcoef > 0.0)) )
1894 SCIP_VAR* var = consdata->linvardecr;
1897delta = viol / consdata->linvardecrcoef;
1898assert(delta < 0.0);
1904delta =
MAX(
MIN(0.0, gap), delta);
1913 SCIPdebugMsg(
scip,
"increase <%s> by %g to %g to remedy rhs-violation %g of cons <%s>\n",
1917viol -= consdata->linvardecrcoef * delta;
1934assert(conshdlrdata->trysolheur !=
NULL);
1975assert(conshdlr !=
NULL);
1976assert(conss !=
NULL|| nconss == 0);
1989 for( c = 0; c < nconss; ++c )
1997assert(consdata !=
NULL);
2005 for( i = 0; i < consdata->nvarexprs; ++i )
2022assert(ownerdata !=
NULL);
2027 if( ownerdata->auxvar !=
NULL)
2033 for( e = 0; e < ownerdata->nenfos; ++e )
2036 SCIP_CALL( SCIPnlhdlrSollinearize(
scip, conshdlr, conss[c],
2037ownerdata->enfos[e]->nlhdlr, expr, ownerdata->enfos[e]->nlhdlrexprdata, sol, solisbest,
2058assert(event !=
NULL);
2059assert(eventdata !=
NULL);
2060assert(eventhdlr !=
NULL);
2069assert(sol !=
NULL);
2072assert(conshdlrdata !=
NULL);
2111assert(conshdlr !=
NULL);
2112assert(expr !=
NULL);
2113assert(cutoff !=
NULL);
2131 if( ntightenings !=
NULL)
2145 if( ntightenings !=
NULL)
2182assert(rootexpr !=
NULL);
2184 if( infeasible !=
NULL)
2185*infeasible =
FALSE;
2186 if( ntightenings !=
NULL)
2190assert(conshdlrdata !=
NULL);
2195 SCIPdebugMsg(
scip,
"stored activity of root expr is empty and valid (activitytag >= lastboundrelax (%" SCIP_LONGINT_FORMAT ")), skip forwardPropExpr -> cutoff\n", conshdlrdata->lastboundrelax);
2197 if( infeasible !=
NULL)
2198*infeasible =
TRUE;
2217assert(ownerdata !=
NULL);
2224 if( ownerdata->nenfos >= 0 && ownerdata->nactivityusesprop == 0 && ownerdata->nactivityusessepa == 0 && !conshdlrdata->indetect)
2227 SCIPdebugMsg(
scip,
"root expr activity is not used but enfo initialized, skip inteval\n");
2250*infeasible =
TRUE;
2267assert(ownerdata !=
NULL);
2275 SCIPexprGetActivityTag(expr) >= conshdlrdata->lastvaractivitymethodchange && !conshdlrdata->globalbounds )
2280 SCIP_CALL( SCIPcallExprInteval(
scip, expr, &exprhdlrinterval, conshdlrdata->intevalvar, conshdlrdata) );
2310 if( infeasible !=
NULL)
2311*infeasible =
TRUE;
2312 SCIPdebugMsg(
scip,
"expr %p already has empty activity -> cutoff\n", (
void*)expr);
2322 if( ownerdata->nenfos >= 0 && ownerdata->nactivityusesprop == 0 && ownerdata->nactivityusessepa == 0 && !conshdlrdata->indetect )
2325 SCIPdebugMsg(
scip,
"expr %p activity is not used but enfo initialized, skip inteval\n", (
void*)expr);
2337 if( ownerdata->nenfos > 0 )
2350nlhdlr = ownerdata->enfos[e]->nlhdlr;
2351assert(nlhdlr !=
NULL);
2358nlhdlrinterval = activity;
2359 SCIP_CALL( SCIPnlhdlrInteval(
scip, nlhdlr, expr, ownerdata->enfos[e]->nlhdlrexprdata,
2360&nlhdlrinterval, conshdlrdata->intevalvar, conshdlrdata) );
2376 SCIP_CALL( SCIPcallExprInteval(
scip, expr, &exprhdlrinterval, conshdlrdata->intevalvar, conshdlrdata) );
2411 SCIPdebugMsg(
scip,
"cut off due to activity [%g,%g] beyond infinity\n", activity.
inf, activity.
sup);
2420 if( infeasible !=
NULL)
2421*infeasible =
TRUE;
2423 else if( tightenauxvars && ownerdata->auxvar !=
NULL)
2428 if( tighteninfeasible )
2430 if( infeasible !=
NULL)
2431*infeasible =
TRUE;
2476 if( subsetsufficient )
2524assert(infeasible !=
NULL);
2525assert(ntightenings !=
NULL);
2528assert(conshdlrdata !=
NULL);
2535 while( !
SCIPqueueIsEmpty(conshdlrdata->reversepropqueue) && !(*infeasible) )
2541assert(expr !=
NULL);
2544assert(ownerdata !=
NULL);
2546assert(ownerdata->inpropqueue);
2548ownerdata->inpropqueue =
FALSE;
2553assert(ownerdata->propboundstag == conshdlrdata->curpropboundstag);
2561#ifdef SCIP_DISABLED_CODE 2565*infeasible =
TRUE;
2569propbounds = ownerdata->propbounds;
2572 if( ownerdata->nenfos > 0 )
2575 for( e = 0; e < ownerdata->nenfos && !*infeasible; ++e )
2584nlhdlr = ownerdata->enfos[e]->nlhdlr;
2585assert(nlhdlr !=
NULL);
2595 SCIP_CALL( SCIPnlhdlrReverseprop(
scip, conshdlr, nlhdlr, expr, ownerdata->enfos[e]->nlhdlrexprdata, propbounds, infeasible, &nreds) );
2597*ntightenings += nreds;
2615assert(ownerdata->nenfos < 0);
2622 SCIP_CALL( SCIPcallExprReverseprop(
scip, expr, propbounds, childrenbounds, infeasible) );
2638assert(expr !=
NULL);
2641assert(ownerdata !=
NULL);
2644ownerdata->inpropqueue =
FALSE;
2695assert(conshdlr !=
NULL);
2696assert(conss !=
NULL);
2697assert(nconss >= 0);
2698assert(result !=
NULL);
2699assert(nchgbds !=
NULL);
2700assert(*nchgbds >= 0);
2710assert(conshdlrdata !=
NULL);
2712assert(conshdlrdata->intevalvar == intEvalVarBoundTightening);
2714assert(!conshdlrdata->globalbounds);
2720conshdlrdata->forceboundtightening = force;
2723++conshdlrdata->curpropboundstag;
2726 if( conshdlrdata->propauxvars )
2741 for( i = 0; i < nconss; ++i )
2744assert(consdata !=
NULL);
2753 if( consdata->ispropagated )
2774 if( !conshdlrdata->propauxvars || ownerdata->auxvar ==
NULL)
2780 if( ownerdata->auxvar ==
NULL)
2789conssides = intEvalVarBoundTightening(
scip, ownerdata->auxvar, (
void*)conshdlrdata);
2801assert(revpropcollectit !=
NULL);
2806assert(ownerdata !=
NULL);
2808 if( ownerdata->auxvar ==
NULL)
2811 if( ownerdata->nactivityusesprop == 0 && ownerdata->nactivityusessepa == 0 )
2814conssides = intEvalVarBoundTightening(
scip, ownerdata->auxvar, (
void*)conshdlrdata);
2826assert(ntightenings >= 0);
2827 if( ntightenings > 0 )
2829*nchgbds += ntightenings;
2834consdata->ispropagated =
TRUE;
2839assert(ntightenings >= 0);
2849 if( ntightenings > 0 )
2851*nchgbds += ntightenings;
2855 while( ntightenings > 0 && ++roundnr < conshdlrdata->maxproprounds );
2857 if( conshdlrdata->propauxvars )
2862conshdlrdata->forceboundtightening =
FALSE;
2865++conshdlrdata->curpropboundstag;
2897assert(conshdlr !=
NULL);
2898assert(conss !=
NULL);
2899assert(nconss >= 0);
2900assert(result !=
NULL);
2901assert(nchgbds !=
NULL);
2902assert(*nchgbds >= 0);
2915 for( c = 0; c < nconss && !cutoff; ++c )
2922assert(consdata !=
NULL);
2927assert(ownerdata !=
NULL);
2932 for( e = 0; e < ownerdata->nenfos; ++e )
2935assert(ownerdata->enfos[e] !=
NULL);
2937nlhdlr = ownerdata->enfos[e]->nlhdlr;
2938assert(nlhdlr !=
NULL);
2942 SCIPdebugMsg(
scip,
"propExprDomains calling reverseprop for expression %p [%g,%g]\n", (
void*)expr,
2945 SCIP_CALL( SCIPnlhdlrReverseprop(
scip, conshdlr, nlhdlr, expr, ownerdata->enfos[e]->nlhdlrexprdata,
2956assert(ntightenings >= 0);
2957 if( ntightenings > 0 )
2959*nchgbds += ntightenings;
2968assert(ntightenings >= 0);
2975 else if( ntightenings > 0 )
2977*nchgbds += ntightenings;
3002assert(expr !=
NULL);
3005 if( nlockspos == 0 && nlocksneg == 0 )
3014ituserdata.
intvals[0] = nlockspos;
3015ituserdata.
intvals[1] = nlocksneg;
3022nlockspos = ituserdata.
intvals[0];
3023nlocksneg = ituserdata.
intvals[1];
3038ownerdata->nlockspos += nlockspos;
3039ownerdata->nlocksneg += nlocksneg;
3042 if( ownerdata->nlockspos == nlockspos && ownerdata->nlocksneg == nlocksneg &&
SCIPexprGetNChildren(expr) > 0
3047assert(ownerdata->monotonicity ==
NULL);
3048assert(ownerdata->monotonicitysize == 0);
3056 SCIP_CALL( SCIPcallExprMonotonicity(
scip, expr, i, &ownerdata->monotonicity[i]) );
3065 if( ownerdata->nlockspos == 0 && ownerdata->nlocksneg == 0 && ownerdata->monotonicity !=
NULL)
3067assert(ownerdata->monotonicitysize > 0);
3072ownerdata->monotonicitysize = 0;
3088 switch( monotonicity )
3091ituserdata.
intvals[0] = nlockspos;
3092ituserdata.
intvals[1] = nlocksneg;
3095ituserdata.
intvals[0] = nlocksneg;
3096ituserdata.
intvals[1] = nlockspos;
3099ituserdata.
intvals[0] = nlockspos + nlocksneg;
3100ituserdata.
intvals[1] = nlockspos + nlocksneg;
3153assert(cons !=
NULL);
3155 if( nlockspos == 0 && nlocksneg == 0 )
3159assert(consdata !=
NULL);
3166consdata->nlockspos += nlockspos;
3167consdata->nlocksneg += nlocksneg;
3169assert(consdata->nlockspos >= 0);
3170assert(consdata->nlocksneg >= 0);
3200assert(cons !=
NULL);
3203assert(consdata !=
NULL);
3204assert(consdata->expr !=
NULL);
3206 if( consdata->nlrow !=
NULL)
3271assert(elem1 !=
NULL);
3272assert(elem2 !=
NULL);
3277assert(h1 !=
NULL);
3278assert(h2 !=
NULL);
3308assert(expr !=
NULL);
3311assert(ownerdata !=
NULL);
3314assert(conshdlrdata !=
NULL);
3315assert(conshdlrdata->auxvarid >= 0);
3316assert(!conshdlrdata->indetect);
3319assert(ownerdata->nenfos < 0);
3320assert(ownerdata->enfos ==
NULL);
3329 if( ownerdata->nauxvaruses == 0 )
3333 if( ownerdata->nlockspos == 0 )
3335 if( ownerdata->nlocksneg == 0 )
3338 if( ownerdata->nactivityusesprop == 0 && ownerdata->nactivityusessepa == 0 )
3347ownerdata->nenfos = 0;
3350conshdlrdata->indetect =
TRUE;
3352 SCIPdebugMsg(
scip,
"detecting nlhdlrs for %s expression %p (%s); requiring%s%s%s\n",
3358 for(
h= 0;
h< conshdlrdata->nnlhdlrs; ++
h)
3362nlhdlr = conshdlrdata->nlhdlrs[
h];
3363assert(nlhdlr !=
NULL);
3370nlhdlrexprdata =
NULL;
3371enforcemethodsnew = enforcemethods;
3373conshdlrdata->registerusesactivitysepabelow =
FALSE;
3374conshdlrdata->registerusesactivitysepaabove =
FALSE;
3376 SCIP_CALL( SCIPnlhdlrDetect(
scip, ownerdata->conshdlr, nlhdlr, expr, cons, &enforcemethodsnew, &nlhdlrparticipating, &nlhdlrexprdata) );
3379nlhdlrparticipating &= enforcemethodsallowed;
3382assert((enforcemethodsnew & enforcemethods) == enforcemethods);
3387nlhdlrenforcemethods = (enforcemethodsnew ^ enforcemethods) & enforcemethodsallowed;
3390assert((nlhdlrparticipating & nlhdlrenforcemethods) == nlhdlrenforcemethods);
3398 if( nlhdlrexprdata !=
NULL)
3400 SCIP_CALL( SCIPnlhdlrFreeexprdata(
scip, nlhdlr, expr, &nlhdlrexprdata) );
3410 SCIPdebugMsg(
scip,
"nlhdlr <%s> detect successful; sepabelow: %s, sepaabove: %s, activity: %s\n",
3419ownerdata->enfos[ownerdata->nenfos]->nlhdlr = nlhdlr;
3420ownerdata->enfos[ownerdata->nenfos]->nlhdlrexprdata = nlhdlrexprdata;
3421ownerdata->enfos[ownerdata->nenfos]->nlhdlrparticipation = nlhdlrparticipating;
3422ownerdata->enfos[ownerdata->nenfos]->issepainit =
FALSE;
3423ownerdata->enfos[ownerdata->nenfos]->sepabelowusesactivity = conshdlrdata->registerusesactivitysepabelow;
3424ownerdata->enfos[ownerdata->nenfos]->sepaaboveusesactivity = conshdlrdata->registerusesactivitysepaabove;
3425ownerdata->nenfos++;
3428enforcemethods = enforcemethodsnew;
3431conshdlrdata->indetect =
FALSE;
3438 SCIPerrorMessage(
"no nonlinear handler provided some of the required enforcement methods\n");
3442assert(ownerdata->nenfos > 0);
3445 if( ownerdata->nenfos > 1 )
3446 SCIPsortDownPtr((
void**)ownerdata->enfos, enfodataCmp, ownerdata->nenfos);
3470assert(conss !=
NULL|| nconss == 0);
3471assert(nconss >= 0);
3475assert(conshdlrdata !=
NULL);
3486conshdlrdata->globalbounds =
TRUE;
3487conshdlrdata->lastvaractivitymethodchange = conshdlrdata->curboundstag;
3490 for( i = 0; i < nconss; ++i )
3492assert(conss !=
NULL&& conss[i] !=
NULL);
3495assert(consdata !=
NULL);
3496assert(consdata->expr !=
NULL);
3505assert(ownerdata !=
NULL);
3512 if( ownerdata->nenfos > 0 )
3515assert(ownerdata->nenfos < 0);
3523conshdlrdata->indetect =
TRUE;
3528conshdlrdata->indetect =
FALSE;
3537assert(ownerdata !=
NULL);
3540 if( ownerdata->nenfos >= 0 )
3550 if( ownerdata->nauxvaruses > 0 || ownerdata->nactivityusesprop > 0 || ownerdata->nactivityusessepa > 0 )
3554assert(ownerdata->nenfos >= 0);
3563ownerdata->nenfos = 0;
3569consdata->ispropagated =
FALSE;
3578conshdlrdata->globalbounds =
FALSE;
3579conshdlrdata->lastvaractivitymethodchange = conshdlrdata->curboundstag;
3615 for( c = 0; c < nconss; ++c )
3626assert(consdata !=
NULL);
3627assert(consdata->expr !=
NULL);
3666 if( consdata->nlrow ==
NULL)
3669assert(consdata->nlrow !=
NULL);
3716 for( c = 0; c < nconss; ++c )
3718assert(conss !=
NULL);
3719assert(conss[c] !=
NULL);
3722assert(consdata !=
NULL);
3723assert(consdata->expr !=
NULL);
3730 SCIPdebugMsg(
scip,
"exitsepa and free nonlinear handler data for expression %p\n", (
void*)expr);
3738 if( rootactivityvalid )
3749 if( consdata->nlrow !=
NULL)
3763consdata->linvardecr =
NULL;
3764consdata->linvarincr =
NULL;
3784assert(expr !=
NULL);
3804assert(child !=
NULL);
3834assert(sumexpr !=
NULL);
3836assert(xs !=
NULL);
3837assert(ys !=
NULL);
3838assert(childidxs !=
NULL);
3848assert(child !=
NULL);
3855assert(
x!=
NULL);
3856assert(
y!=
NULL);
3862childidxs[*
nterms] = i;
3893assert(facvar !=
NULL);
3894assert(vars !=
NULL);
3896assert(newexpr !=
NULL);
3900 for( i = 0; i < nvars; ++i )
3902minact +=
MIN(coefs[i], 0.0);
3903maxact +=
MAX(coefs[i], 0.0);
3906assert(minact <= maxact);
3913#ifdef WITH_DEBUG_SOLUTION 3914 if( SCIPdebugIsMainscip(
scip) )
3922 for( i = 0; i < nvars; ++i )
3925debugsolval += coefs[i] * val;
3944 if( naddconss !=
NULL)
3955 if( naddconss !=
NULL)
3969 if( naddconss !=
NULL)
3982 if( naddconss !=
NULL)
4015 int* childidxs =
NULL;
4016 int* count =
NULL;
4024assert(sumexpr !=
NULL);
4025assert(minterms > 1);
4026assert(newexpr !=
NULL);
4040 if( nchildren < minterms )
4065 for( i = 0; i <
nterms; ++i )
4070assert(xs[i] !=
NULL);
4071assert(ys[i] !=
NULL);
4074assert(xidx < ntotalvars);
4076assert(yidx < ntotalvars);
4094 for( i = 0; i < nvars; ++i )
4107 for( j = 0; j <
nterms; ++j )
4109 intchildidx = childidxs[j];
4110assert(childidx >= 0 && childidx < nchildren);
4112 if( !isused[childidx] && (xs[j] == facvar || ys[j] == facvar) )
4118coef = sumcoefs[childidx];
4119assert(coef != 0.0);
4122tmpvars[ntmpvars] = (xs[j] == facvar) ? ys[j] : xs[j];
4123tmpcoefs[ntmpvars] = coef;
4128assert(xidx < ntotalvars);
4130assert(yidx < ntotalvars);
4133assert(count[xidx] >= 0);
4134assert(count[yidx] >= 0);
4137isused[childidx] =
TRUE;
4140assert(ntmpvars >= minterms);
4146exprcoefs[nexprs] = 1.0;
4153 intnexprsold = nexprs;
4156 for( i = 0; i < nchildren; ++i )
4161exprcoefs[nexprs] = sumcoefs[i];
4170 for( i = 0; i < nexprsold; ++i )
4211assert(conshdlr !=
NULL);
4212assert(prodexpr !=
NULL);
4214assert(newexpr !=
NULL);
4217assert(nchildren >= 2);
4226strcpy(name,
"binreform");
4227 for( i = 0; i < nchildren; ++i )
4231assert(vars[i] !=
NULL);
4232(void) strcat(name,
"_");
4241#ifdef WITH_DEBUG_SOLUTION 4242 if( SCIPdebugIsMainscip(
scip) )
4249 for( i = 0; i < nchildren; ++i )
4261 if( nchildren == 2 && !empathy4and )
4266assert(
x!=
NULL);
4267assert(
y!=
NULL);
4291 if( naddconss !=
NULL)
4303 if( naddconss !=
NULL)
4336assert(prodexpr !=
NULL);
4337assert(newexpr !=
NULL);
4346assert(conshdlrdata !=
NULL);
4348assert(nchildren >= 2);
4354assert(*newexpr !=
NULL);
4361 SCIPdebugMsg(
scip,
" product expression %p has been considered for the first time\n", (
void*)prodexpr);
4363 if( nchildren == 2 )
4373assert(
x!=
NULL);
4375assert(
y!=
NULL);
4389 if( nchgcoefs !=
NULL)
4392found_clique =
TRUE;
4401 if( nchgcoefs !=
NULL)
4404found_clique =
TRUE;
4409 if( !found_clique )
4421 if( nchgcoefs !=
NULL)
4424found_clique =
TRUE;
4442 if( nchgcoefs !=
NULL)
4445found_clique =
TRUE;
4452 if( !found_clique )
4486assert(conshdlr !=
NULL);
4487assert(cons !=
NULL);
4488assert(exprmap !=
NULL);
4489assert(it !=
NULL);
4492assert(conshdlrdata !=
NULL);
4495assert(consdata !=
NULL);
4496assert(consdata->expr !=
NULL);
4509assert(childexpr !=
NULL);
4512 if( conshdlrdata->reformbinprodsfac > 1 )
4518 if( newexpr ==
NULL)
4523 if( newexpr !=
NULL)
4525assert(naddconss ==
NULL|| *naddconss > 0 || nchgcoefs ==
NULL|| *nchgcoefs > 0);
4534consdata->issimplified =
FALSE;
4590assert(conshdlr !=
NULL);
4595assert(conss !=
NULL);
4598assert(conshdlrdata !=
NULL);
4610 for( c = 0; c < nconss; ++c )
4615assert(conss[c] !=
NULL);
4618assert(consdata !=
NULL);
4621 if( conshdlrdata->reformbinprodsfac > 1 )
4627 if( newexpr !=
NULL)
4630consdata->expr = newexpr;
4633consdata->issimplified =
FALSE;
4665assert(cons !=
NULL);
4668assert(consdata !=
NULL);
4682 if( nchildren == 1 && constant == 0.0 && coefs[0] == -1.0 )
4685expr = consdata->expr;
4693consdata->lhs = -consdata->lhs;
4694consdata->rhs = -consdata->rhs;
4702 for( i = 0; i < nchildren; ++i )
4703counter += coefs[i] > 0 ? 1 : -1;
4713 for( i = 0; i < nchildren; ++i )
4714newcoefs[i] = -coefs[i];
4721consdata->expr = expr;
4723consdata->lhs = -consdata->lhs;
4724consdata->rhs = -consdata->rhs;
4751assert(conshdlr !=
NULL);
4759 for( c = 0; c < nconss; ++c )
4762assert(consdata !=
NULL);
4825assert(conshdlr !=
NULL);
4826assert(conss !=
NULL);
4828assert(infeasible !=
NULL);
4831assert(conshdlrdata !=
NULL);
4834++(conshdlrdata->ncanonicalizecalls);
4838*infeasible =
FALSE;
4841havechange = conshdlrdata->ncanonicalizecalls == 1;
4851 for( i = 0; i < nconss; ++i )
4853assert(conss[i] !=
NULL);
4856assert(consdata !=
NULL);
4859nlockspos[i] = consdata->nlockspos;
4860nlocksneg[i] = consdata->nlocksneg;
4864assert(consdata->nlockspos == 0);
4865assert(consdata->nlocksneg == 0);
4870 for( i = 0; i < nconss; ++i )
4878assert(consdata !=
NULL);
4883assert(expr !=
NULL);
4895 inttmpnaddconss = 0;
4896 inttmpnchgcoefs = 0;
4904 if( naddconss !=
NULL)
4905*naddconss = tmpnaddconss;
4906 if( nchgcoefs !=
NULL)
4907*nchgcoefs = tmpnchgcoefs;
4910 if( tmpnaddconss + tmpnchgcoefs > 0 )
4914 for( i = 0; i < nconss; ++i )
4917assert(consdata !=
NULL);
4920 if( !consdata->issimplified && consdata->expr !=
NULL)
4927consdata->issimplified =
TRUE;
4935 if( simplified != consdata->expr )
4943consdata->expr = simplified;
4971*infeasible =
TRUE;
4978 if( ndelconss !=
NULL)
4987 if( havechange && !*infeasible )
4994 for( i = 0; i < nconss; ++i )
5003 for( i = 0; i < nconss; ++i )
5016 SCIPsortPtr((
void**)consssorted, compIndexConsNonlinear, nconss);
5018 for( i = nconss-1; i >= 0; --i )
5020assert(i == 0 || compIndexConsNonlinear((
void*)consssorted[i-1], (
void*)consssorted[i]) < 0);
5027 for( i = 0; i < nconss; ++i )
5046 for( i = 0; i < nconss; ++i )
5060 for( i = 0; i < conshdlrdata->nnlhdlrs; ++i )
5090assert(success !=
NULL);
5103 for( c = 0; c < nconss; ++c )
5112assert(consdata !=
NULL);
5125assert(idx >= 0 && idx < nconss);
5128assert(imgconsdata !=
NULL);
5129assert(imgconsdata->expr == consdata->expr);
5131 SCIPdebugMsg(
scip,
"merge constraint %g <= %s <= %g with %g <= %s <= %g\n", consdata->lhs,
5138nlockspos[idx] = imgconsdata->nlockspos;
5139nlocksneg[idx] = imgconsdata->nlocksneg;
5141updatelocks[idx] =
TRUE;
5145imgconsdata->lhs =
MAX(imgconsdata->lhs, consdata->lhs);
5146imgconsdata->rhs =
MIN(imgconsdata->rhs, consdata->rhs);
5157 for( c = 0; c < nconss; ++c )
5159 if( updatelocks[c] )
5188assert(var !=
NULL);
5191assert(conshdlrdata !=
NULL);
5193 if( conshdlrdata->globalbounds )
5260assert(conshdlr !=
NULL);
5261assert(conss !=
NULL);
5262assert(nconss >= 0);
5263assert(cutoff !=
NULL);
5264assert(ndelconss !=
NULL);
5265assert(nchgbds !=
NULL);
5272assert(conshdlrdata !=
NULL);
5279++conshdlrdata->curboundstag;
5280assert(conshdlrdata->curboundstag > 0);
5281conshdlrdata->lastvaractivitymethodchange = conshdlrdata->curboundstag;
5282conshdlrdata->lastboundrelax = conshdlrdata->curboundstag;
5283conshdlrdata->intevalvar = intEvalVarRedundancyCheck;
5285 SCIPdebugMsg(
scip,
"checking %d constraints for redundancy\n", nconss);
5288 for( i = 0; i < nconss; ++i )
5294assert(consdata !=
NULL);
5325assert(var !=
NULL);
5389 SCIPdebugMsg(
scip,
" -> redundant: activity [%g,%g] within sides [%g,%g]\n", activity.
inf, activity.
sup, consdata->lhs, consdata->rhs);
5397 SCIPdebugMsg(
scip,
" -> not redundant: activity [%g,%g] not within sides [%g,%g]\n", activity.
inf, activity.
sup, consdata->lhs, consdata->rhs);
5402++conshdlrdata->curboundstag;
5403conshdlrdata->lastvaractivitymethodchange = conshdlrdata->curboundstag;
5404conshdlrdata->lastboundrelax = conshdlrdata->curboundstag;
5405conshdlrdata->intevalvar = intEvalVarBoundTightening;
5429assert(conshdlr !=
NULL);
5430assert(cons !=
NULL);
5432assert(upgraded !=
NULL);
5433assert(nupgdconss !=
NULL);
5434assert(naddconss !=
NULL);
5441assert(conshdlrdata !=
NULL);
5444 if( conshdlrdata->nconsupgrades == 0 )
5455assert(consdata !=
NULL);
5458 for( i = 0; i < conshdlrdata->nconsupgrades; ++i )
5460 if( !conshdlrdata->consupgrades[i]->active )
5463assert(conshdlrdata->consupgrades[i]->consupgd !=
NULL);
5465 SCIP_CALL( conshdlrdata->consupgrades[i]->consupgd(
scip, cons, consdata->nvarexprs, &nupgdconss_, upgdconss, upgdconsssize) );
5467 while( nupgdconss_ < 0 )
5470assert(-nupgdconss_ > upgdconsssize);
5471upgdconsssize = -nupgdconss_;
5474 SCIP_CALL( conshdlrdata->consupgrades[i]->consupgd(
scip, cons, consdata->nvarexprs, &nupgdconss_, upgdconss, upgdconsssize) );
5476assert(nupgdconss_ != 0);
5479 if( nupgdconss_ > 0 )
5487 for( j = 0; j < nupgdconss_; ++j )
5498*naddconss += nupgdconss_ - 1;
5530assert(var !=
NULL);
5533assert(ownerdata !=
NULL);
5593 intnsinglelocked = 0;
5596assert(conshdlr !=
NULL);
5597assert(cons !=
NULL);
5598assert(nchgvartypes !=
NULL);
5599assert(naddconss !=
NULL);
5600assert(infeasible !=
NULL);
5604*infeasible =
FALSE;
5607assert(conshdlrdata !=
NULL);
5609assert(consdata !=
NULL);
5628 for( i = 0; i < consdata->nvarexprs; ++i )
5630assert(consdata->varexprs[i] !=
NULL);
5635singlelocked[nsinglelocked++] = consdata->varexprs[i];
5640 if( nsinglelocked > 0 )
5654 for( i = 0; i < nchildren; ++i )
5659child = children[i];
5660assert(child !=
NULL);
5695valid = exponent > 1.0 && fmod(exponent, 2.0) == 0.0;
5697 if( !valid || !
SCIPisExprVar(
scip, grandchild) || (hasrhs && coef > 0.0) || (haslhs && coef < 0.0) )
5719 for( i = 0; i < nsinglelocked; ++i )
5732assert(var !=
NULL);
5733 SCIPdebugMsg(
scip,
"found single locked variable %s in [%g,%g] that can be fixed to one of its bounds\n",
5793assert(conshdlr !=
NULL);
5794assert(conss !=
NULL|| nconss == 0);
5795assert(nchgvartypes !=
NULL);
5796assert(infeasible !=
NULL);
5798*infeasible =
FALSE;
5808 for( c = 0; c < nconss; ++c )
5818assert(conss !=
NULL&& conss[c] !=
NULL);
5821assert(consdata !=
NULL);
5824 if( !
SCIPisEQ(
scip, consdata->lhs, consdata->rhs) )
5837 if( nchildren <= 1 )
5843 for( i = 0; i < nchildren; ++i )
5848candcoef = coefs[i];
5849assert(candcoef != 0.0);
5865 for( i = 0; i < nchildren; ++i )
5867 if( children[i] == cand )
5888 SCIPdebugMsg(
scip,
"make variable <%s> implicit integer due to constraint <%s>\n",
5922assert(expr !=
NULL);
5925assert(ownerdata !=
NULL);
5926assert(ownerdata->nauxvaruses > 0);
5929 if( ownerdata->auxvar !=
NULL)
5943assert(conshdlrdata !=
NULL);
5944assert(conshdlrdata->auxvarid >= 0);
5954++conshdlrdata->auxvarid;
6004#ifdef WITH_DEBUG_SOLUTION 6005 if( SCIPdebugIsMainscip(
scip) )
6047 intnreductions = 0;
6051assert(conshdlr !=
NULL);
6052assert(conss !=
NULL|| nconss == 0);
6053assert(nconss >= 0);
6054assert(infeasible !=
NULL);
6057assert(conshdlrdata !=
NULL);
6060++conshdlrdata->curpropboundstag;
6066*infeasible =
FALSE;
6067 for( c = 0; c < nconss; ++c )
6069assert(conss !=
NULL);
6070assert(conss[c] !=
NULL);
6073assert(consdata !=
NULL);
6074assert(consdata->expr !=
NULL);
6076#ifdef WITH_DEBUG_SOLUTION 6077 if( SCIPdebugIsMainscip(
scip) )
6083 if( debugsol !=
NULL)
6105 if( auxvar !=
NULL)
6107 SCIPdebugMsg(
scip,
"tighten auxvar <%s> bounds using constraint sides [%g,%g]\n",
6133*infeasible =
TRUE;
6140 for( c = 0; c < nconss && !*infeasible; ++c )
6142assert(conss !=
NULL);
6143assert(conss[c] !=
NULL);
6146assert(consdata !=
NULL);
6147assert(consdata->expr !=
NULL);
6154assert(ownerdata !=
NULL);
6156 if( ownerdata->nauxvaruses == 0 )
6159 for( e = 0; e < ownerdata->nenfos; ++e )
6164assert(ownerdata->enfos[e] !=
NULL);
6169 if( ownerdata->enfos[e]->issepainit )
6176nlhdlr = ownerdata->enfos[e]->nlhdlr;
6177assert(nlhdlr !=
NULL);
6184overestimate = ownerdata->nlocksneg > 0;
6185underestimate = ownerdata->nlockspos > 0;
6186assert(underestimate || overestimate);
6188 SCIPdebugMsg(
scip,
"initsepa under=%u over=%u for expression %p\n", underestimate, overestimate, (
void*)expr);
6191 SCIP_CALL( SCIPnlhdlrInitsepa(
scip, conshdlr, conss[c], nlhdlr, expr,
6192ownerdata->enfos[e]->nlhdlrexprdata, overestimate, underestimate, infeasible) );
6193ownerdata->enfos[e]->issepainit =
TRUE;
6222assert(conshdlr !=
NULL);
6225assert(conshdlrdata !=
NULL);
6242assert(conshdlrdata !=
NULL);
6244 switch( conshdlrdata->branchviolsplit )
6253 return MAX(0.05, weight);
6262assert(width > 0.0);
6264 return10.0*log10(width);
6266 return0.1/(-log10(width));
6271 SCIPerrorMessage(
"invalid value for parameter constraints/expr/branching/violsplit");
6301assert(exprs !=
NULL);
6303assert(success !=
NULL);
6316 for( i = 0; i < nexprs; ++i )
6319assert(var !=
NULL);
6328 for( i = 0; i < nexprs; ++i )
6331assert(var !=
NULL);
6333 if( nunbounded > 0 )
6338 SCIPdebugMsg(
scip,
"add score %g (%g%% of %g) to <%s>[%g,%g]\n", violscore / nunbounded,
6339100.0/nunbounded, violscore,
6346assert(weightsum > 0.0);
6350 SCIPdebugMsg(
scip,
"add score %g (%g%% of %g) to <%s>[%g,%g]\n", violscore * weight / weightsum,
6351100*weight / weightsum, violscore,
6388assert(expr !=
NULL);
6389assert(auxvars !=
NULL);
6390assert(success !=
NULL);
6393 SCIPsortPtr((
void**)auxvars, SCIPvarComp, nauxvars);
6404 if( auxvar ==
NULL)
6410assert(auxvars[pos] == auxvar);
6413exprs[nexprs++] = expr;
6415 if( nexprs == nauxvars )
6449assert(conshdlr !=
NULL);
6450assert(conss !=
NULL|| nconss == 0);
6451assert(nnotify !=
NULL);
6455 for( c = 0; c < nconss; ++c )
6457assert(conss !=
NULL&& conss[c] !=
NULL);
6460assert(consdata !=
NULL);
6467assert(consdata->varexprs !=
NULL);
6468 for( i = 0; i < consdata->nvarexprs; ++i )
6471assert(var !=
NULL);
6498assert(conshdlr !=
NULL);
6499assert(success !=
NULL);
6510 for( c = 0; c < nconss; ++c )
6512assert(conss !=
NULL&& conss[c] !=
NULL);
6515assert(consdata !=
NULL);
6516assert(consdata->varexprs !=
NULL);
6529 for( i = 0; i < consdata->nvarexprs; ++i )
6539 if( violscore == 0.0 )
6543assert(var !=
NULL);
6577 if( violscore == 0.0 )
6584assert(var !=
NULL);
6641assert(conshdlr !=
NULL);
6642assert(cands !=
NULL);
6643assert(ncands !=
NULL);
6646assert(conshdlrdata !=
NULL);
6655 for( attempt = 0; attempt < 2; ++attempt )
6661 for( c = 0; c < nconss; ++c )
6665assert(conss !=
NULL&& conss[c] !=
NULL);
6672assert(consdata !=
NULL);
6673assert(consdata->varexprs !=
NULL);
6677 if( attempt == 0 && consviol < conshdlrdata->branchhighviolfactor * maxrelconsviol )
6679 else if( attempt == 1 && consviol >= conshdlrdata->branchhighviolfactor * maxrelconsviol )
6691 for( i = 0; i < consdata->nvarexprs; ++i )
6701assert(var !=
NULL);
6714cands[*ncands].
expr= consdata->varexprs[i];
6715cands[*ncands].
var= var;
6740assert(var !=
NULL);
6753cands[*ncands].
expr= expr;
6754cands[*ncands].
var= var;
6814assert(conshdlr !=
NULL);
6815assert(var !=
NULL);
6826assert(col !=
NULL);
6841 for(
r= 0;
r< nrows; ++
r)
6844 const char* estimategapstr;
6857estimategapstr = strstr(
SCIProwGetName(rows[
r]),
"_estimategap=");
6858 if( estimategapstr ==
NULL)
6860estimategap = atof(estimategapstr + 13);
6861assert(estimategap >= 0.0);
6911assert(conshdlr !=
NULL);
6912assert(cands !=
NULL);
6916assert(conshdlrdata !=
NULL);
6921 for( c = 0; c < ncands; ++c )
6923 if( conshdlrdata->branchviolweight > 0.0 )
6934assert(cands[c].expr !=
NULL|| cands[c].fractionality > 0.0);
6936 if( considerfracnl && cands[c].fractionality == 0.0 )
6955 if( conshdlrdata->branchdomainweight > 0.0 && cands[c].
expr!=
NULL)
6961assert(var !=
NULL);
6970 if( domainwidth >= 1.0 )
6980 if( conshdlrdata->branchdualweight > 0.0 && cands[c].
expr!=
NULL)
6985assert(var !=
NULL);
6988maxscore.
dual=
MAX(cands[c].dual, maxscore.
dual);
6991cands[c].
dual= 0.0;
6997var = cands[c].
var;
6998assert(var !=
NULL);
7000 if( cands[c].expr !=
NULL)
7016strategy = conshdlrdata->branchpscostupdatestrategy;
7085cands[c].
pscost= pscostup;
7087cands[c].
pscost= pscostdown;
7118cands[c].
pscost= pscostup;
7120cands[c].
pscost= pscostdown;
7131 if( conshdlrdata->branchvartypeweight > 0.0 )
7155 for( c = 0; c < ncands; ++c )
7161cands[c].weighted = 0.0;
7164 if( maxscore.
auxviol> 0.0 )
7167weightsum += conshdlrdata->branchviolweight;
7175weightsum += conshdlrdata->branchfracweight;
7180 if( maxscore.
domain> 0.0 )
7183weightsum += conshdlrdata->branchdomainweight;
7188 if( maxscore.
dual> 0.0 )
7190cands[c].
weighted+= conshdlrdata->branchdualweight * cands[c].
dual/ maxscore.
dual;
7191weightsum += conshdlrdata->branchdualweight;
7196 if( maxscore.
pscost> 0.0 )
7202weightsum += conshdlrdata->branchpscostweight;
7213 if( maxscore.
vartype> 0.0 )
7216weightsum += conshdlrdata->branchvartypeweight;
7221assert(weightsum > 0.0);
7238 if( cands[ind1].weighted != cands[ind2].weighted )
7241 if( cands[ind1].var != cands[ind2].var )
7244 returncands[ind1].
expr!=
NULL? 1 : -1;
7266assert(cands !=
NULL);
7267assert(ncands >= 1);
7268assert(selected !=
NULL);
7279assert(conshdlrdata !=
NULL);
7286 SCIPsortDown(perm, branchcandCompare, (
void*)cands, ncands);
7290 SCIPvarGetName(cands[perm[ncands - 1]].var), cands[perm[ncands - 1]].weighted); )
7295threshold = conshdlrdata->branchhighscorefactor * cands[perm[0]].
weighted;
7296 while( left < right )
7298 intmid = (left + right) / 2;
7299 if( cands[perm[mid]].weighted >= threshold )
7304assert(left <= ncands);
7306 if( left < ncands )
7308 if( cands[perm[left]].weighted >= threshold )
7310assert(left + 1 == ncands || cands[perm[left + 1]].weighted < threshold);
7315assert(cands[perm[left]].weighted < threshold);
7321 ENFOLOG(
SCIPinfoMessage(
scip, enfologfile,
" %d branching candidates <%s>(%g)...<%s>(%g) after removing low scores\n", ncands,
7323 SCIPvarGetName(cands[perm[ncands - 1]].var), cands[perm[ncands - 1]].weighted); )
7328 if( conshdlrdata->branchrandnumgen ==
NULL)
7333*selected = &cands[perm[c]];
7336*selected = &cands[perm[0]];
7364assert(conshdlr !=
NULL);
7365assert(result !=
NULL);
7370assert(conshdlrdata !=
NULL);
7372 if( conshdlrdata->branchexternal )
7398assert(selected !=
NULL);
7406 if( downchild !=
NULL|| eqchild !=
NULL|| upchild !=
NULL)
7443assert(result !=
NULL);
7446 SCIP_CALL( SCIPnlhdlrEnfo(
scip, conshdlr, cons, nlhdlr, expr, nlhdlrexprdata, sol, auxvalue, overestimate,
7447allowweakcuts, separated, inenforcement, branchcandonly, result) );
7478assert(auxvar !=
NULL);
7480 SCIP_CALL( SCIPnlhdlrEstimate(
scip, conshdlr, nlhdlr, expr, nlhdlrexprdata, sol, auxvalue, overestimate,
7481 SCIPgetSolVal(
scip, sol, auxvar), inenforcement, rowpreps, &sepasuccess, &branchscoresuccess) );
7486assert((sepasuccess && minidx <= maxidx) || (!sepasuccess && minidx > maxidx));
7494 for(
r= minidx;
r<= maxidx; ++
r)
7498assert(rowprep !=
NULL);
7501 if( !branchcandonly )
7510auxvalue, allowweakcuts, branchscoresuccess, inenforcement, sol, result) );
7516 if( branchcandonly && branchscoresuccess )
7558assert(expr !=
NULL);
7559assert(result !=
NULL);
7562assert(ownerdata !=
NULL);
7563assert(ownerdata->auxvar !=
NULL);
7574assert(conshdlrdata !=
NULL);
7577 if( !overestimate && !underestimate )
7583 for( e = 0; e < ownerdata->nenfos; ++e )
7592 if( branchcandonly && !ownerdata->enfos[e]->sepaaboveusesactivity && !ownerdata->enfos[e]->sepabelowusesactivity )
7595nlhdlr = ownerdata->enfos[e]->nlhdlr;
7596assert(nlhdlr !=
NULL);
7599 SCIP_CALL( SCIPnlhdlrEvalaux(
scip, nlhdlr, expr, ownerdata->enfos[e]->nlhdlrexprdata, &ownerdata->enfos[e]->auxvalue, sol) );
7603 SCIPinfoMessage(
scip, enfologfile,
" (%p): evalvalue %.15g auxvarvalue %.15g [%.15g,%.15g], nlhdlr <%s> "\
7617assert(auxviol >= 0.0);
7620 if( !
SCIPisInfinity(
scip, auxviol) && auxviol < conshdlrdata->enfoauxviolfactor * origviol )
7623 "auxviolation %g << origviolation %g under:%d over:%d\n",
SCIPnlhdlrGetName(nlhdlr), (
void*)expr,
7635underestimate, overestimate); )
7643auxviol, origviol, underestimate, overestimate, allowweakcuts); )
7648 if( overestimate && auxoverestimate && (ownerdata->enfos[e]->nlhdlrparticipation &
SCIP_NLHDLR_METHOD_SEPAABOVE) != 0 && (!branchcandonly || ownerdata->enfos[e]->sepaaboveusesactivity) )
7653ownerdata->enfos[e]->auxvalue,
TRUE, *result ==
SCIP_SEPARATED, allowweakcuts, inenforcement, branchcandonly, &hdlrresult) );
7659ownerdata->lastenforced = conshdlrdata->enforound;
7667ownerdata->lastenforced = conshdlrdata->enforound;
7676ownerdata->lastenforced = conshdlrdata->enforound;
7683assert(inenforcement);
7689ownerdata->lastenforced = conshdlrdata->enforound;
7696 if( underestimate && auxunderestimate && (ownerdata->enfos[e]->nlhdlrparticipation &
SCIP_NLHDLR_METHOD_SEPABELOW) != 0 && (!branchcandonly || ownerdata->enfos[e]->sepabelowusesactivity) )
7701ownerdata->enfos[e]->auxvalue,
FALSE, *result ==
SCIP_SEPARATED, allowweakcuts, inenforcement, branchcandonly, &hdlrresult) );
7707ownerdata->lastenforced = conshdlrdata->enforound;
7715ownerdata->lastenforced = conshdlrdata->enforound;
7724ownerdata->lastenforced = conshdlrdata->enforound;
7731assert(inenforcement);
7737ownerdata->lastenforced = conshdlrdata->enforound;
7765assert(conshdlr !=
NULL);
7766assert(cons !=
NULL);
7767assert(it !=
NULL);
7768assert(result !=
NULL);
7769assert(success !=
NULL);
7772assert(conshdlrdata !=
NULL);
7775assert(consdata !=
NULL);
7780 if( inenforcement && !branchcandonly && !consdata->ispropagated )
7800 if( ntightenings > 0 )
7810assert(ownerdata !=
NULL);
7813 if( ownerdata->auxvar ==
NULL)
7816assert(ownerdata->lastenforced <= conshdlrdata->enforound);
7817 if( ownerdata->lastenforced == conshdlrdata->enforound )
7828 SCIP_CALL(
enforceExpr(
scip, conshdlr, cons, expr, sol, soltag, allowweakcuts, inenforcement, branchcandonly, &resultexpr) );
7831assert((ownerdata->lastenforced == conshdlrdata->enforound) == (resultexpr !=
SCIP_DIDNOTFIND));
7832 if( ownerdata->lastenforced == conshdlrdata->enforound )
7885assert(conshdlr !=
NULL);
7886assert(conss !=
NULL|| nconss == 0);
7887assert(result !=
NULL);
7890assert(conshdlrdata !=
NULL);
7896++(conshdlrdata->enforound);
7903 for( c = 0; c < nconss; ++c )
7905assert(conss !=
NULL&& conss[c] !=
NULL);
7925assert(consdata !=
NULL);
7929 for( i = 0; i < consdata->nvarexprs; ++i )
7938 SCIP_CALL(
enforceConstraint(
scip, conshdlr, conss[c], sol, soltag, it,
FALSE, inenforcement, branchcandonly, result, &consenforced) );
7943 if( !consenforced && inenforcement && !branchcandonly )
7948 if( viol > conshdlrdata->weakcutminviolfactor * maxrelconsviol )
7953 SCIP_CALL(
enforceConstraint(
scip, conshdlr, conss[c], sol, soltag, it,
TRUE, inenforcement, branchcandonly, result, &consenforced) );
7956++conshdlrdata->nweaksepa;
7966 ENFOLOG(
if( enfologfile !=
NULL) fflush( enfologfile); )
7983 ENFOLOG(
if( enfologfile !=
NULL) fflush( enfologfile); )
8019assert(conshdlr !=
NULL);
8020assert(conss !=
NULL);
8022assert(branchintegral !=
NULL);
8023assert(cutoff !=
NULL);
8025*branchintegral =
FALSE;
8036*branchintegral =
TRUE;
8047 SCIPerrorMessage(
"Unexpected separation or propagation from enforceConstraints(branchcandonly = TRUE)\n");
8059 SCIPerrorMessage(
"Unexpected return from enforceConstraints(branchcandonly = TRUE)\n");
8070 ENFOLOG(
SCIPinfoMessage(
scip, enfologfile,
" adding %d fractional integer variables to branching candidates\n", nlpcands); )
8072 for( c = 0; c < nlpcands; ++c )
8077cands[ncands].
var= lpcands[c];
8088assert(selected !=
NULL);
8094*branchintegral =
TRUE;
8119assert(conshdlrdata !=
NULL);
8146 for( i = 0; i < nbinvars + nintvars && !isfractional; ++i )
8148assert(vars[i] !=
NULL);
8152isfractional =
TRUE;
8155 if( !isfractional )
8164 if( conshdlrdata->branchmixfractional == 0.0 )
8204assert(conss !=
NULL|| nconss == 0);
8205assert(maxabsconsviol !=
NULL);
8206assert(maxrelconsviol !=
NULL);
8207assert(maxauxviol !=
NULL);
8208assert(maxvarboundviol !=
NULL);
8213*maxabsconsviol = 0.0;
8214*maxrelconsviol = 0.0;
8217*maxvarboundviol = 0.0;
8219 for( c = 0; c < nconss; ++c )
8221assert(conss !=
NULL&& conss[c] !=
NULL);
8224assert(consdata !=
NULL);
8232*maxabsconsviol =
MAX(*maxabsconsviol, v);
8239*maxrelconsviol =
MAX(*maxrelconsviol, v);
8254assert(ownerdata !=
NULL);
8256 if( ownerdata->auxvar ==
NULL)
8269origviol = auxvarlb - auxvarvalue;
8271origviol = auxvarvalue - auxvarub;
8272 if( origviol <= 0.0 )
8275*maxvarboundviol =
MAX(*maxvarboundviol, origviol);
8280 SCIPinfoMessage(
scip, enfologfile,
" var >= lb violated by %g", auxvarlb - auxvarvalue);
8282 SCIPinfoMessage(
scip, enfologfile,
" var <= ub violated by %g", auxvarvalue - auxvarub);
8295 if( auxvarlb - auxvarvalue > *maxvarboundviol && !
SCIPisInfinity(
scip, -auxvarlb) )
8296*maxvarboundviol = auxvarlb - auxvarvalue;
8297 else if( auxvarvalue - auxvarub > *maxvarboundviol && !
SCIPisInfinity(
scip, auxvarub) )
8298*maxvarboundviol = auxvarvalue - auxvarub;
8303 if( origviol > 0.0 || auxvarlb > auxvarvalue || auxvarub < auxvarvalue )
8310 if( origviol > 0.0 )
8311 SCIPinfoMessage(
scip, enfologfile,
" auxvar %s expr violated by %g", violunder ?
">=":
"<=", origviol);
8313 SCIPinfoMessage(
scip, enfologfile,
" auxvar >= auxvar's lb violated by %g", auxvarlb - auxvarvalue);
8315 SCIPinfoMessage(
scip, enfologfile,
" auxvar <= auxvar's ub violated by %g", auxvarvalue - auxvarub);
8321 if( origviol == 0.0 )
8325 for( e = 0; e < ownerdata->nenfos; ++e )
8333nlhdlr = ownerdata->enfos[e]->nlhdlr;
8334assert(nlhdlr !=
NULL);
8337 SCIP_CALL( SCIPnlhdlrEvalaux(
scip, nlhdlr, expr, ownerdata->enfos[e]->nlhdlrexprdata, &ownerdata->enfos[e]->auxvalue, sol) );
8343 if( auxviol > 0.0 )
8345 ENFOLOG(
SCIPinfoMessage(
scip, enfologfile,
" auxvar %s nlhdlr-expr violated by %g", violover ?
"<=":
">=", auxviol); )
8346*maxauxviol =
MAX(*maxauxviol, auxviol);
8347*minauxviol =
MIN(*minauxviol, auxviol);
8389assert(conshdlr !=
NULL);
8394 for( c = 0; c < nconss; ++c )
8410&minauxviol, &maxauxviol, &maxvarboundviol) );
8413 "auxviolations in %g..%g, variable bounds violated by at most %g, LP feastol=%e\n",
8430 if( branchintegral )
8439 if( conshdlrdata->propinenforce )
8448*result = propresult;
8460++conshdlrdata->ntightenlp;
8476++conshdlrdata->ntightenlp;
8506++conshdlrdata->ntightenlp;
8528++conshdlrdata->ndesperatetightenlp;
8538 if( !conshdlrdata->propinenforce )
8547*result = propresult;
8560++conshdlrdata->ndesperatebranch;
8575 ENFOLOG(
SCIPinfoMessage(
scip, enfologfile,
" enforcement with max. violation %g failed; cutting off node\n", maxabsconsviol); )
8580++conshdlrdata->ndesperatecutoff;
8605 for( c = 0; c < nconss; ++c )
8607assert(conss[c] !=
NULL);
8643assert(conshdlrdata !=
NULL);
8645idx = ((int)(
size_t)elem) - 1;
8646assert(idx >= 0 && idx < conshdlrdata->nbilinterms);
8648 return(
void*)&conshdlrdata->bilinterms[idx];
8661assert(entry1->
x!=
NULL&& entry1->
y!=
NULL);
8662assert(entry2->
x!=
NULL&& entry2->
y!=
NULL);
8666 returnentry1->
x== entry2->
x&& entry1->
y== entry2->
y;
8676assert(entry->
x!=
NULL&& entry->
y!=
NULL);
8697 if( compvars != 0 )
8701 for( i = 0; i < 3; ++i )
8703 if( auxexpr1->
coefs[i] != auxexpr2->
coefs[i] )
8704 returnauxexpr1->
coefs[i] < auxexpr2->
coefs[i] ? -1 : 1;
8707 returnauxexpr1->
cst< auxexpr2->
cst? -1 : auxexpr1->
cst== auxexpr2->
cst? 0 : 1;
8739 if( term->
nauxexprs>= conshdlrdata->bilinmaxnauxexprs )
8746 for( i = term->
nauxexprs; i > pos; --i )
8750term->
aux.
exprs[pos] = auxexpr;
8777assert(conss !=
NULL|| nconss == 0);
8783assert(conshdlrdata !=
NULL);
8786 if( conshdlrdata->bilinterms !=
NULL)
8795 for( c = 0; c < nconss; ++c )
8800assert(conss !=
NULL&& conss[c] !=
NULL);
8802assert(consdata !=
NULL);
8855assert(conshdlr !=
NULL);
8856assert(
x!=
NULL);
8857assert(
y!=
NULL);
8858assert(nlockspos >= 0);
8859assert(nlocksneg >= 0);
8862assert(conshdlrdata !=
NULL);
8876assert(conshdlrdata->bilinterms[*idx].x ==
x);
8877assert(conshdlrdata->bilinterms[*idx].y ==
y);
8880term = &conshdlrdata->bilinterms[*idx];
8881assert(existing <= term->existing);
8890*idx = conshdlrdata->nbilinterms;
8893term = &conshdlrdata->bilinterms[*idx];
8894assert(term !=
NULL);
8908++(conshdlrdata->nbilinterms);
8911 if( conshdlrdata->bilinhashtable ==
NULL)
8914bilinearTermsGetHashkey, bilinearTermsIsHashkeyEq, bilinearTermsGetHashkeyVal,
8915(
void*)conshdlrdata) );
8917assert(conshdlrdata->bilinhashtable !=
NULL);
8942assert(conshdlrdata !=
NULL);
8945 if( conshdlrdata->bilinterms ==
NULL)
8947assert(conshdlrdata->bilinterms ==
NULL);
8948assert(conshdlrdata->nbilinterms == 0);
8949assert(conshdlrdata->bilintermssize == 0);
8955 for( i = 0; i < conshdlrdata->nbilinterms; ++i )
8960 for( j = 0; j < conshdlrdata->bilinterms[i].nauxexprs; ++j )
8962 if( conshdlrdata->bilinterms[i].aux.exprs[j]->auxvar !=
NULL)
8969 if( conshdlrdata->bilinterms[i].nauxexprs > 0 )
8978 if( conshdlrdata->bilinterms[i].aux.var !=
NULL)
8985 if( conshdlrdata->bilinhashtable !=
NULL)
8992conshdlrdata->nbilinterms = 0;
8993conshdlrdata->bilintermssize = 0;
9023assert(lp !=
NULL);
9027 SCIPdebugMsg(
scip,
"Building LP for computing facets of convex envelope of vertex-polyhedral function\n");
9032nrows = (
unsignedint)nvars + 1;
9034nnonz = (ncols * (nrows + 1)) / 2;
9045 for( i = 0, k = 0; i < ncols; ++i )
9061 if( (
a& i) != 0 )
9079ind[k] = (int)nrows - 1;
9081 SCIPdebugMsg(
scip,
" val[%u][%u] = 1 (position %u)\n", nrows - 1, i, k);
9088assert(nrows <= ncols);
9090(
int)ncols, obj, lb, ub,
NULL,
9091(
int)nrows, lb, lb,
NULL,
9092(
int)nnonz, beg, ind, val) );
9095ind[0] = (int)nrows - 1;
9132 unsigned intncorners;
9136assert(funvals !=
NULL);
9137assert(box !=
NULL);
9138assert(nonfixedpos !=
NULL);
9139assert(facetcoefs !=
NULL);
9145facetval = facetconstant;
9146 for( i = 0; i < (
unsignedint) nallvars; ++i )
9147facetval += facetcoefs[i] * box[2*i];
9150funval = funvals[0];
9152error = funval - facetval;
9154error = facetval - funval;
9157maxerror =
MAX(error, maxerror);
9160 for( i = 1; i < ncorners; ++i )
9167gray = i ^ (i >> 1);
9172 while( (diff >>= 1) != 0 )
9174assert(pos < (
unsigned int)nvars);
9176origpos = nonfixedpos[pos];
9179facetval += facetcoefs[origpos] * (box[2*origpos+1] - box[2*origpos]);
9181facetval -= facetcoefs[origpos] * (box[2*origpos+1] - box[2*origpos]);
9184funval = funvals[gray];
9186error = funval - facetval;
9188error = facetval - funval;
9191maxerror =
MAX(error, maxerror);
9231assert(conshdlr !=
NULL);
9232assert(xstar !=
NULL);
9233assert(box !=
NULL);
9234assert(nonfixedpos !=
NULL);
9235assert(funvals !=
NULL);
9238assert(success !=
NULL);
9239assert(facetcoefs !=
NULL);
9240assert(facetconstant !=
NULL);
9245assert(conshdlrdata !=
NULL);
9247 if( conshdlrdata->vp_randnumgen ==
NULL&& conshdlrdata->vp_maxperturb > 0.0 )
9253 if( conshdlrdata->vp_lp[nvars] ==
NULL)
9257lp = conshdlrdata->vp_lp[nvars];
9258assert(lp !=
NULL);
9275 for( i = 0; i < ncols; ++i )
9280 for( i = 0; i < nrows-1; ++i )
9289varpos = nonfixedpos[i];
9290lb = box[2 * varpos];
9291ub = box[2 * varpos + 1];
9292solval = xstar[varpos];
9294 if( ub - lb < mindomwidth )
9295mindomwidth = ub - lb;
9300 else if( solval >= ub )
9303aux[i] = (solval - lb) / (ub - lb);
9306 if( conshdlrdata->vp_maxperturb > 0.0 )
9308assert(conshdlrdata->vp_randnumgen !=
NULL);
9310 if( aux[i] == 1.0 )
9311aux[i] -=
SCIPrandomGetReal(conshdlrdata->vp_randnumgen, 0.0, conshdlrdata->vp_maxperturb);
9312 else if( aux[i] == 0.0 )
9313aux[i] +=
SCIPrandomGetReal(conshdlrdata->vp_randnumgen, 0.0, conshdlrdata->vp_maxperturb);
9318perturbation =
MIN( aux[i], 1.0 - aux[i] ) / 2.0;
9319perturbation =
MIN( perturbation, conshdlrdata->vp_maxperturb );
9320aux[i] +=
SCIPrandomGetReal(conshdlrdata->vp_randnumgen, -perturbation, perturbation);
9322assert(0.0 < aux[i] && aux[i] < 1.0);
9355 if( conshdlrdata->vp_dualsimplex )
9382 for( i = 0; i < nvars; ++i )
9383facetcoefs[nonfixedpos[i]] = aux[i];
9385*facetconstant = aux[nrows - 1];
9389 for( i = 0; i < nallvars; ++i )
9403 for( i = 0; i < nvars; ++i )
9409varpos = nonfixedpos[i];
9410lb = box[2 * varpos];
9411ub = box[2 * varpos + 1];
9415facetcoefs[varpos] = facetcoefs[varpos] / (ub - lb);
9418*facetconstant -= facetcoefs[varpos] * lb;
9421facetvalue += facetcoefs[varpos] * xstar[varpos];
9428facetvalue += *facetconstant;
9437 if( overestimate == (facetvalue > targetvalue) )
9439 SCIPdebugMsg(
scip,
"missed the target, facetvalue %g targetvalue %g, overestimate=%u\n", facetvalue, targetvalue, overestimate);
9476assert(success !=
NULL);
9477assert(facetcoef !=
NULL);
9478assert(facetconstant !=
NULL);
9480*facetcoef = (funright - funleft) / (right - left);
9481*facetconstant = funleft - *facetcoef * left;
9513assert(alpha !=
NULL);
9514assert(beta !=
NULL);
9515assert(gamma_ !=
NULL);
9516assert(delta !=
NULL);
9518*alpha = -b3*c2 + a3*(-b2+c2) + a2*(b3-c3) + b2*c3;
9519*beta = -(-b3*c1 + a3*(-b1+c1) + a1*(b3-c3) + b1*c3);
9520*gamma_ = -a2*b1 + a1*b2 + a2*c1 - b2*c1 - a1*c2 + b1*c2;
9521*delta = -a3*b2*c1 + a2*b3*c1 + a3*b1*c2 - a1*b3*c2 - a2*b1*c3 + a1*b2*c3;
9538 if( !
SCIPisRelEQ(
scip, *alpha * a1 + *beta * a2 - *delta, -*gamma_ * a3) ||
9539!
SCIPisRelEQ(
scip, *alpha * b1 + *beta * b2 - *delta, -*gamma_ * b3) ||
9540!
SCIPisRelEQ(
scip, *alpha * c1 + *beta * c2 - *delta, -*gamma_ * c3) )
9568 SCIPdebugMsg(
scip,
"numerical troubles - try to solve the linear system via an LU factorization\n");
9581 if( !success || !
SCIPisRelEQ(
scip, *alpha * a1 + *beta * a2 - *delta, -*gamma_ * a3) ||
9582!
SCIPisRelEQ(
scip, *alpha * b1 + *beta * b2 - *delta, -*gamma_ * b3) ||
9583!
SCIPisRelEQ(
scip, *alpha * c1 + *beta * c2 - *delta, -*gamma_ * c3) )
9593 if( *gamma_ < 0.0 )
9629assert(success !=
NULL);
9634assert(facetcoefs !=
NULL);
9635assert(facetconstant !=
NULL);
9640 if( !overestimate )
9646targetvalue = -targetvalue;
9649 SCIPdebugMsg(
scip,
"p1 = (%g, %g), f(p1) = %g\n", p1[0], p1[1], p1val);
9650 SCIPdebugMsg(
scip,
"p2 = (%g, %g), f(p2) = %g\n", p2[0], p2[1], p2val);
9651 SCIPdebugMsg(
scip,
"p3 = (%g, %g), f(p3) = %g\n", p3[0], p3[1], p3val);
9652 SCIPdebugMsg(
scip,
"p4 = (%g, %g), f(p4) = %g\n", p4[0], p4[1], p4val);
9663 for( leaveout = 1; leaveout <= 4; ++leaveout )
9669 SCIP_CALL(
computeHyperplaneThreePoints(
scip, p2[0], p2[1], p2val, p3[0], p3[1], p3val, p4[0], p4[1], p4val,
9670&alpha, &beta, &gamma_, &delta) );
9672 if( alpha * p1[0] + beta * p1[1] + gamma_ * p1val - delta > 0.0 )
9678 SCIP_CALL(
computeHyperplaneThreePoints(
scip, p1[0], p1[1], p1val, p3[0], p3[1], p3val, p4[0], p4[1], p4val,
9679&alpha, &beta, &gamma_, &delta) );
9681 if( alpha * p2[0] + beta * p2[1] + gamma_ * p2val - delta > 0.0 )
9687 SCIP_CALL(
computeHyperplaneThreePoints(
scip, p1[0], p1[1], p1val, p2[0], p2[1], p2val, p4[0], p4[1], p4val,
9688&alpha, &beta, &gamma_, &delta) );
9690 if( alpha * p3[0] + beta * p3[1] + gamma_ * p3val - delta > 0.0 )
9696 SCIP_CALL(
computeHyperplaneThreePoints(
scip, p1[0], p1[1], p1val, p2[0], p2[1], p2val, p3[0], p3[1], p3val,
9697&alpha, &beta, &gamma_, &delta) );
9699 if( alpha * p4[0] + beta * p4[1] + gamma_ * p4val - delta > 0.0 )
9721 SCIPdebugMsg(
scip,
"alpha = %g, beta = %g, gamma = %g, delta = %g\n", alpha, beta, gamma_, delta);
9724xstarval = -alpha/gamma_ * xstar[0] -beta/gamma_ * xstar[1] + delta/gamma_;
9727 if( xstarval <= targetvalue && (!*success || xstarval < candxstarval) )
9730 if( !overestimate )
9733facetcoefs[0] = -alpha/gamma_;
9734facetcoefs[1] = -beta/gamma_;
9735*facetconstant = delta/gamma_;
9738candxstarval = xstarval;
9757assert(openidx !=
NULL);
9758assert(maxnelems !=
NULL);
9760 if( nelems > *maxnelems )
9765assert(newsize >= nelems);
9769*maxnelems = newsize;
9786assert(vars !=
NULL);
9787assert(vals !=
NULL);
9788assert(maxnelems !=
NULL);
9790 if( nelems > *maxnelems )
9795assert(newsize > *maxnelems);
9800*maxnelems = newsize;
9845assert(expr !=
NULL);
9847assert(graph !=
NULL);
9849assert(consvars !=
NULL);
9850assert(consvals !=
NULL);
9851assert(maxnconsvars !=
NULL);
9852assert(*maxnconsvars > 0);
9853assert(handledexprs !=
NULL);
9854assert(success !=
NULL);
9860 if( nchildren != 2 )
9870 for( childidx = 0; childidx < 2; ++childidx )
9873(*consvals)[0] = 1.0;
9888 if( childidx == 0 )
9890var1 = (*consvars)[0];
9891val1 = (*consvals)[0];
9895var2 = (*consvars)[0];
9896val2 = (*consvals)[0];
9899assert(var1 !=
NULL);
9900assert(var2 !=
NULL);
9907assert(symdata !=
NULL);
9925prodval = coef * val1 * val2;
9964assert(expr !=
NULL);
9965assert(hasvalue !=
NULL);
9966assert(value !=
NULL);
9975assert(symdata !=
NULL);
9998assert(symdata !=
NULL);
10009safeexponent = (int) (exponent + 0.5);
10010 if( safeexponent % 2 != 0 )
10020*hasvalue =
FALSE;
10036assert(var !=
NULL);
10065 int* maxnconsvars,
10078assert(evenopexpr !=
NULL);
10079assert(child !=
NULL);
10081assert(cons !=
NULL);
10082assert(graph !=
NULL);
10083assert(parentidx >= 0);
10084assert(consvars !=
NULL);
10085assert(consvals !=
NULL);
10086assert(maxnconsvars !=
NULL);
10087assert(success !=
NULL);
10093(*consvars)[0] = var;
10094(*consvals)[0] = 1.0;
10110var = (*consvars)[0];
10111edgeweight = (*consvals)[0];
10122 TRUE, edgeweight) );
10124 TRUE, edgeweight) );
10150 int* maxnconsvars,
10165assert(evenopexpr !=
NULL);
10166assert(child !=
NULL);
10168assert(cons !=
NULL);
10169assert(graph !=
NULL);
10170assert(parentidx >= 0);
10171assert(consvars !=
NULL);
10172assert(consvals !=
NULL);
10173assert(maxnconsvars !=
NULL);
10174assert(handledexprs !=
NULL);
10175assert(success !=
NULL);
10184 for( i = 0; i < nlocvars; ++i)
10202assert(nlocvars > 0);
10204var = (*consvars)[0];
10208 if( nlocvars == 2 )
10210var = (*consvars)[1];
10233 if( nlocvars == 1 )
10235var = (*consvars)[0];
10236weight = (*consvals)[0];
10257 for( i = 0; i < 2; ++i)
10259var = (*consvars)[i];
10260weight =
ABS((*consvals)[i]);
10289 int* maxnconsvars,
10299assert(expr !=
NULL);
10300assert(graph !=
NULL);
10302assert(consvars !=
NULL);
10303assert(consvals !=
NULL);
10304assert(maxnconsvars !=
NULL);
10305assert(*maxnconsvars > 0);
10306assert(handledexprs !=
NULL);
10307assert(success !=
NULL);
10329hasval, val, consvars, consvals, maxnconsvars, success) );
10334hasval, val, consvars, consvals, maxnconsvars, handledexprs, success) );
10357assert(var1 !=
NULL);
10358assert(var2 !=
NULL);
10387 return(ub + lb) / 2;
10400 int* maxnconsvars,
10421 int* powperm =
NULL;
10422 int* prodperm =
NULL;
10433 intnprodexprs = 0;
10437assert(sumexpr !=
NULL);
10438assert(cons !=
NULL);
10440assert(consvars !=
NULL);
10441assert(consvals !=
NULL);
10442assert(maxnconsvars !=
NULL);
10443assert(*maxnconsvars > 0);
10444assert(handledexprs !=
NULL);
10457 for( i = 0; i < nchildren; ++i )
10464 if( powcoef == 0 )
10480assert(symdata !=
NULL);
10493powexprs[npowexprs] = children[i];
10494powvars[npowexprs++] = var;
10500 if( powcoef == 0 )
10522prodexprs[nprodexprs] = children[i];
10523prodvars[nprodexprs++] = var;
10524prodexprs[nprodexprs] = children[i];
10525prodvars[nprodexprs++] = var2;
10530 if( npowexprs == 0 || nprodexprs != npowexprs )
10537 SCIPsort(powperm, SCIPsortVarPtr, (
void*) powvars, npowexprs);
10538 SCIPsort(prodperm, SCIPsortVarPtr, (
void*) prodvars, npowexprs);
10540 for( i = 0; i < npowexprs; ++i )
10547assert(npowexprs % 2 == 0);
10553 for( i = 0; i <
nterms; ++i )
10558(*consvals)[0] = 1.0;
10559(*consvars)[0] = prodvars[cnt++];
10566 if( nlocvars != 1 )
10571actvar = (*consvars)[0];
10572val = (*consvals)[0];
10574(*consvals)[0] = 1.0;
10575(*consvars)[0] = prodvars[cnt++];
10582 if( nlocvars != 1 )
10584actvar2 = (*consvars)[0];
10585val2 = (*consvals)[0];
10618 for( j = 0; j < npowexprs && !(var1found && var2found); ++j )
10620 if( powexprused[j] )
10624 if( !var1found && powvars[j] == prodvars[cnt - 2] )
10627powexprused[j] =
TRUE;
10630 else if( !var2found && powvars[j] == prodvars[cnt - 1] )
10633powexprused[j] =
TRUE;
10683assert(cons !=
NULL);
10684assert(graph !=
NULL);
10685assert(success !=
NULL);
10692assert(rootexpr !=
NULL);
10696assert(expr !=
NULL);
10752 if( expr == rootexpr )
10753parentidx = consnodeidx;
10756assert(nopenidx >= 1);
10757parentidx = openidx[nopenidx - 1];
10761hasparentcoef =
FALSE;
10762 if( expr != rootexpr )
10773openidx[nopenidx++] = -1;
10775assert(maxnconsvars > 0);
10776assert(parentidx > 0);
10779 if( hasparentcoef )
10784parentidx = nodeidx;
10804parentidx = thisidx;
10807nconsvars, constant) );
10811assert(parentidx > 0);
10820openidx[nopenidx++] = -1;
10826assert(expr == rootexpr || parentidx > 0);
10838usedefaultgadget =
FALSE;
10877&consvars, &consvals, &maxnconsvars, handledexprs) );
10881openidx[nopenidx++] = sumidx;
10888parentcoef, &consvars, &consvals, &maxnconsvars, handledexprs, &succ) );
10892usedefaultgadget =
FALSE;
10902&consvars, &consvals, &maxnconsvars, handledexprs, &succ) );
10906usedefaultgadget =
FALSE;
10911 if( usedefaultgadget )
10926assert(symdata !=
NULL);
10941openidx[nopenidx++] = opidx;
10970assert(conshdlr !=
NULL);
10971assert(valid !=
NULL);
10978assert(targetconshdlr !=
NULL);
10979assert(targetconshdlr != conshdlr);
10982assert(sourceconshdlrdata !=
NULL);
10985 for( i = 0; i < sourceconshdlrdata->nnlhdlrs; ++i )
10987 SCIP_CALL( SCIPnlhdlrCopyhdlr(
scip, targetconshdlr, conshdlr, sourceconshdlrdata->nlhdlrs[i]) );
11003assert(conshdlrdata !=
NULL);
11006 for( i = 0; i < conshdlrdata->nnlhdlrs; ++i )
11009assert(conshdlrdata->nlhdlrs[i] ==
NULL);
11012conshdlrdata->nlhdlrssize = 0;
11015 for( i = 0; i < conshdlrdata->nconsupgrades; ++i )
11017assert(conshdlrdata->consupgrades[i] !=
NULL);
11026 if( conshdlrdata->vp_randnumgen !=
NULL)
11032 if( conshdlrdata->vp_lp[i] !=
NULL)
11038assert(conshdlrdata->branchrandnumgen ==
NULL);
11058assert(conshdlrdata !=
NULL);
11061conshdlrdata->lastboundrelax = ++conshdlrdata->curboundstag;
11063conshdlrdata->enforound = 1;
11065conshdlrdata->auxvarid = 0;
11067 for( i = 0; i < nconss; ++i )
11074 if( conshdlrdata->nnlhdlrs > 1 )
11075 SCIPsortDownPtr((
void**)conshdlrdata->nlhdlrs, SCIPnlhdlrComp, conshdlrdata->nnlhdlrs);
11082 for( i = 0; i < conshdlrdata->nnlhdlrs; ++i )
11084 SCIP_CALL( SCIPnlhdlrInit(
scip, conshdlrdata->nlhdlrs[i]) );
11088conshdlrdata->nweaksepa = 0;
11089conshdlrdata->ntightenlp = 0;
11090conshdlrdata->ndesperatebranch = 0;
11091conshdlrdata->ndesperatecutoff = 0;
11092conshdlrdata->ndesperatetightenlp = 0;
11093conshdlrdata->nforcelp = 0;
11095conshdlrdata->ncanonicalizecalls = 0;
11098 ENFOLOG( enfologfile = fopen(ENFOLOGFILE,
"w"); )
11114assert(conshdlrdata !=
NULL);
11120 SCIPsortDownPtr((
void**)consssorted, compIndexConsNonlinear, nconss);
11122 for( i = 0; i < nconss; ++i )
11131conshdlrdata->subnlpheur =
NULL;
11132conshdlrdata->trysolheur =
NULL;
11134 if( conshdlrdata->vp_randnumgen !=
NULL)
11140 if( conshdlrdata->vp_lp[i] !=
NULL)
11146 if( conshdlrdata->branchrandnumgen !=
NULL)
11150 for( i = 0; i < conshdlrdata->nnlhdlrs; ++i )
11152 SCIP_CALL( SCIPnlhdlrExit(
scip, conshdlrdata->nlhdlrs[i]) );
11156 if( enfologfile !=
NULL)
11158fclose(enfologfile);
11159enfologfile =
NULL;
11167#ifdef SCIP_DISABLED_CODE 11171 SCIPerrorMessage(
"method of nonlinear constraint handler not implemented yet\n");
11177#define consInitpreNonlinear NULL 11233assert(conshdlrdata !=
NULL);
11236 for( i = 0; i < conshdlrdata->nnlhdlrs; ++i )
11242 if( conshdlrdata->branchpscostweight > 0.0 )
11245 if( strchr(
"lds", conshdlrdata->branchpscostupdatestrategy) ==
NULL)
11247 SCIPerrorMessage(
"branching/lpgainnormalize strategy %c unknown\n", conshdlrdata->branchpscostupdatestrategy);
11266assert(conshdlrdata !=
NULL);
11272conshdlrdata->checkedvarlocks =
FALSE;
11275 if( conshdlrdata->newsoleventfilterpos >= 0 )
11280assert(eventhdlr !=
NULL);
11283conshdlrdata->newsoleventfilterpos = -1;
11294assert(consdata !=
NULL);
11295assert(*consdata !=
NULL);
11296assert((*consdata)->expr !=
NULL);
11299assert((*consdata)->nlockspos == 0);
11300assert((*consdata)->nlocksneg == 0);
11308 if( (*consdata)->nlrow !=
NULL)
11327assert(sourcedata !=
NULL);
11331assert(targetexpr !=
NULL);
11335targetexpr, sourcedata->lhs, sourcedata->rhs,
FALSE,
11362assert(conshdlrdata !=
NULL);
11365 if( conshdlrdata->linearizeheursol !=
'o'&& conshdlrdata->newsoleventfilterpos == -1 )
11370assert(eventhdlr !=
NULL);
11373eventhdlr, (
SCIP_EVENTDATA*)conshdlr, &conshdlrdata->newsoleventfilterpos) );
11440 for( c = 0; c < nconss; ++c )
11459*result = propresult;
11467 SCIPdebugMsg(
scip,
"registered %d external branching candidates\n", nnotify);
11472 SCIPdebugMsg(
scip,
"could not find branching candidates, forcing to solve LP\n");
11492assert(conshdlr !=
NULL);
11493assert(conss !=
NULL|| nconss == 0);
11494assert(result !=
NULL);
11497assert(conshdlrdata !=
NULL);
11506maypropfeasible =
FALSE;
11509 for( c = 0; c < nconss; ++c )
11511assert(conss !=
NULL&& conss[c] !=
NULL);
11520assert(consdata !=
NULL);
11537 else if( (conshdlrdata->subnlpheur ==
NULL|| sol ==
NULL) && !maypropfeasible && !completely )
11545maypropfeasible =
FALSE;
11547 if( maypropfeasible )
11554 if( !(consdata->linvarincr !=
NULL&& consdata->linvarincrcoef > 0.0) &&
11555!(consdata->linvardecr !=
NULL&& consdata->linvardecrcoef < 0.0) )
11556maypropfeasible =
FALSE;
11564 if( !(consdata->linvarincr !=
NULL&& consdata->linvarincrcoef < 0.0) &&
11565!(consdata->linvardecr !=
NULL&& consdata->linvardecrcoef > 0.0) )
11566maypropfeasible =
FALSE;
11599assert(nchgbds >= 0);
11624assert(conshdlrdata !=
NULL);
11672 for( c = 0; c < nconss; ++c )
11698&& !conshdlrdata->checkedvarlocks && conshdlrdata->checkvarlocks !=
'd')
11703conshdlrdata->checkedvarlocks =
TRUE;
11705 for( c = 0; c < nconss; ++c )
11707 inttmpnchgvartypes = 0;
11708 inttmpnaddconss = 0;
11711 SCIPdebugMsg(
scip,
"presolSingleLockedVars() for %s: nchgvartypes=%d naddconss=%d infeas=%u\n",
11712 SCIPconsGetName(conss[c]), tmpnchgvartypes, tmpnaddconss, infeasible);
11716 SCIPdebugMsg(
scip,
"presolSingleLockedVars() detected infeasibility\n");
11721(*nchgvartypes) += tmpnchgvartypes;
11722(*naddconss) += tmpnaddconss;
11726 if( *ndelconss > 0 || *nchgbds > 0 || *nupgdconss > 0 || *naddconss > 0 || *nchgvartypes > 0 )
11736#ifdef SCIP_DISABLED_CODE 11740 SCIPerrorMessage(
"method of nonlinear constraint handler not implemented yet\n");
11746#define consRespropNonlinear NULL 11758assert(conshdlr !=
NULL);
11759assert(cons !=
NULL);
11762assert(consdata !=
NULL);
11763assert(consdata->expr !=
NULL);
11771 if( ownerdata->nenfos >= 0 )
11773 if( (consdata->nlockspos == 0) != (nlockspos == 0) )
11774reinitsolve =
TRUE;
11775 if( (consdata->nlocksneg == 0) != (nlocksneg == 0) )
11776reinitsolve =
TRUE;
11804assert(consdata !=
NULL);
11811 if( !consdata->issimplified )
11819assert(simplified !=
NULL);
11820consdata->expr = simplified;
11821consdata->issimplified =
TRUE;
11826assert(!replacedroot);
11835assert(conshdlrdata !=
NULL);
11852 if( hashmapexpr !=
NULL&& hashmapexpr != child )
11870assert(consdata->nlockspos == 0);
11871assert(consdata->nlocksneg == 0);
11882assert(!infeasible);
11895assert(conshdlrdata !=
NULL);
11928assert(conshdlrdata !=
NULL);
11946assert(conshdlrdata !=
NULL);
11957#ifdef SCIP_DISABLED_CODE 11961 SCIPerrorMessage(
"method of nonlinear constraint handler not implemented yet\n");
11967#define consDelvarsNonlinear NULL 11978assert(consdata !=
NULL);
11979assert(consdata->expr !=
NULL);
11991 if(
SCIPisEQ(
scip, consdata->lhs, consdata->rhs) )
12012assert(cons !=
NULL);
12015assert(sourcedata !=
NULL);
12018assert(targetconshdlr !=
NULL);
12020 SCIP_CALL(
SCIPcopyExpr(sourcescip,
scip, sourcedata->expr, &targetexpr, exprownerCreate, (
void*)targetconshdlr, varmap, consmap, global, valid) );
12022 if( targetexpr ==
NULL)
12030targetexpr, sourcedata->lhs, sourcedata->rhs,
FALSE,
12031initial, separate, enforce, check, propagate, local, modifiable, dynamic, removable) );
12034 if( targetexpr !=
NULL)
12056assert(success !=
NULL);
12057assert(str !=
NULL);
12058assert(name !=
NULL);
12059assert(cons !=
NULL);
12067endptr = (
char*)str;
12076 if( isdigit((
unsigned char)str[0]) || ((str[0] ==
'-'|| str[0] ==
'+') && isdigit((
unsigned char)str[1])) )
12088 if( endptr[0] !=
'<'|| endptr[1] !=
'=')
12103 SCIPdebugMsg(
scip,
"str should start at beginning of expr: %s\n", str);
12112 if( strncmp(str,
"[free]", 6) == 0 )
12166consexprtree, lhs, rhs,
FALSE,
12167initial, separate, enforce, check, propagate, local, modifiable, dynamic, removable) );
12168assert(*cons !=
NULL);
12186assert(consdata !=
NULL);
12192 if( varssize < consdata->nvarexprs )
12198 for( i = 0; i < consdata->nvarexprs; ++i )
12201assert(vars[i] !=
NULL);
12216assert(consdata !=
NULL);
12221*nvars = consdata->nvarexprs;
12228#ifdef SCIP_DISABLED_CODE 12232 SCIPerrorMessage(
"method of nonlinear constraint handler not implemented yet\n");
12238#define consGetDiveBdChgsNonlinear NULL 12267assert(conshdlr !=
NULL);
12270assert(conshdlrdata !=
NULL);
12273 SCIPinfoMessage(
scip, file,
"Nonlinear Conshdlr : %10s %10s %10s %10s %10s %10s %10s\n",
"WeakSepa",
"TightenLP",
"DespTghtLP",
"DespBranch",
"DespCutoff",
"ForceLP",
"CanonTime");
12297assert(conshdlr !=
NULL);
12304assert(conshdlrdata !=
NULL);
12324assert(conshdlr !=
NULL);
12327assert(conshdlrdata !=
NULL);
12333 for( i = 0; i < conshdlrdata->nnlhdlrs; ++i )
12336assert(nlhdlr !=
NULL);
12367conshdlrdata->intevalvar = intEvalVarBoundTightening;
12368conshdlrdata->curboundstag = 1;
12369conshdlrdata->lastboundrelax = 1;
12370conshdlrdata->curpropboundstag = 1;
12371conshdlrdata->newsoleventfilterpos = -1;
12382conshdlrCopyNonlinear,
12383consFreeNonlinear, consInitNonlinear, consExitNonlinear,
12385consDeleteNonlinear, consTransNonlinear, consInitlpNonlinear,
12386consSepalpNonlinear, consSepasolNonlinear, consEnfolpNonlinear, consEnforelaxNonlinear, consEnfopsNonlinear, consCheckNonlinear,
12388consActiveNonlinear, consDeactiveNonlinear,
12390consPrintNonlinear, consCopyNonlinear, consParseNonlinear,
12392consGetSignedPermsymGraphNonlinear, conshdlrdata) );
12397 "limit on number of propagation rounds for a set of constraints within one round of SCIP propagation",
12398&conshdlrdata->maxproprounds,
FALSE, 10, 0, INT_MAX,
NULL,
NULL) );
12401 "whether to check bounds of all auxiliary variable to seed reverse propagation",
12405 "strategy on how to relax variable bounds during bound tightening: relax (n)ot, relax by (a)bsolute value, relax always by a(b)solute value, relax by (r)relative value",
12406&conshdlrdata->varboundrelax,
TRUE,
'r',
"nabr",
NULL,
NULL) );
12409 "by how much to relax variable bounds during bound tightening if strategy 'a', 'b', or 'r'",
12413 "by how much to relax constraint sides during bound tightening",
12417 "maximal relative perturbation of reference point when computing facet of envelope of vertex-polyhedral function (dim>2)",
12421 "adjust computed facet of envelope of vertex-polyhedral function up to a violation of this value times LP feasibility tolerance",
12425 "whether to use dual simplex instead of primal simplex for LP that computes facet of vertex-polyhedral function",
12429 "maximal number of auxiliary expressions per bilinear term",
12433 "whether to reformulate products of binary variables during presolving",
12437 "whether to use the AND constraint handler for reformulating binary products",
12441 "minimum number of terms to reformulate bilinear binary products by factorizing variables (<= 1: disabled)",
12442&conshdlrdata->reformbinprodsfac,
FALSE, 50, 1, INT_MAX,
NULL,
NULL) );
12445 "whether to forbid multiaggregation of nonlinear variables",
12449 "whether to tighten LP feasibility tolerance during enforcement, if it seems useful",
12453 "whether to (re)run propagation in enforcement",
12457 "threshold for when to regard a cut from an estimator as weak (lower values allow more weak cuts)",
12458&conshdlrdata->weakcutthreshold,
TRUE, 0.2, 0.0, 1.0,
NULL,
NULL) );
12461 "\"strong\" cuts will be scaled to have their maximal coef in [1/strongcutmaxcoef,strongcutmaxcoef]",
12465 "consider efficacy requirement when deciding whether a cut is \"strong\"",
12469 "whether to force \"strong\" cuts in enforcement",
12473 "an expression will be enforced if the \"auxiliary\" violation is at least this factor times the \"original\" violation",
12474&conshdlrdata->enfoauxviolfactor,
TRUE, 0.01, 0.0, 1.0,
NULL,
NULL) );
12477 "retry enfo of constraint with weak cuts if violation is least this factor of maximal violated constraints",
12478&conshdlrdata->weakcutminviolfactor,
TRUE, 0.5, 0.0, 2.0,
NULL,
NULL) );
12481 "whether to make rows to be non-removable in the node where they are added (can prevent some cycling): 'o'ff, in 'e'nforcement only, 'a'lways",
12482&conshdlrdata->rownotremovable,
TRUE,
'o',
"oea",
NULL,
NULL) );
12485 "method how to scale violations to make them comparable (not used for feasibility check): (n)one, (a)ctivity and side, norm of (g)radient",
12486&conshdlrdata->violscale,
TRUE,
'n',
"nag",
NULL,
NULL) );
12489 "whether variables contained in a single constraint should be forced to be at their lower or upper bounds ('d'isable, change 't'ype, add 'b'ound disjunction)",
12490&conshdlrdata->checkvarlocks,
TRUE,
't',
"bdt",
NULL,
NULL) );
12493 "from which depth on in the tree to allow branching on auxiliary variables (variables added for extended formulation)",
12494&conshdlrdata->branchauxmindepth,
FALSE, INT_MAX, 0, INT_MAX,
NULL,
NULL) );
12497 "whether to use external branching candidates and branching rules for branching",
12501 "consider a constraint highly violated if its violation is >= this factor * maximal violation among all constraints",
12502&conshdlrdata->branchhighviolfactor,
FALSE, 0.0, 0.0, 1.0,
NULL,
NULL) );
12505 "consider a variable branching score high if its branching score >= this factor * maximal branching score among all variables",
12506&conshdlrdata->branchhighscorefactor,
FALSE, 0.9, 0.0, 1.0,
NULL,
NULL) );
12509 "weight by how much to consider the violation assigned to a variable for its branching score",
12513 "weight by how much to consider fractionality of integer variables in branching score for spatial branching",
12517 "weight by how much to consider the dual values of rows that contain a variable for its branching score",
12521 "weight by how much to consider the pseudo cost of a variable for its branching score",
12525 "weight by how much to consider the domain width in branching score",
12529 "weight by how much to consider variable type (continuous: 0, binary: 1, integer: 0.1, impl-integer: 0.01) in branching score",
12533 "how to aggregate several branching scores given for the same expression: 'a'verage, 'm'aximum, 's'um",
12534&conshdlrdata->branchscoreagg,
FALSE,
's',
"ams",
NULL,
NULL) );
12537 "method used to split violation in expression onto variables: 'u'niform, 'm'idness of solution, 'd'omain width, 'l'ogarithmic domain width",
12538&conshdlrdata->branchviolsplit,
FALSE,
'm',
"umdl",
NULL,
NULL) );
12541 "minimum pseudo-cost update count required to consider pseudo-costs reliable",
12545 "minimal average pseudo cost count for discrete variables at which to start considering spatial branching before branching on fractional integer variables",
12549 "whether tight linearizations of nonlinear constraints should be added to cutpool when some heuristics finds a new solution ('o'ff, on new 'i'ncumbents, on 'e'very solution)",
12550&conshdlrdata->linearizeheursol,
FALSE,
'o',
"oie",
NULL,
NULL) );
12553 "whether to assume that any constraint is convex",
12558 "signals a bound change to a nonlinear constraint", processVarEvent,
NULL) );
12559assert(conshdlrdata->eventhdlr !=
NULL);
12577assert(parentdialog !=
NULL);
12588processNewSolutionEvent,
NULL) );
12599 const char* conshdlrname
12609assert(conshdlrname !=
NULL);
12610assert(nlconsupgd !=
NULL);
12614 if( conshdlr ==
NULL)
12621assert(conshdlrdata !=
NULL);
12624 for( i = conshdlrdata->nconsupgrades - 1; i >= 0; --i )
12626 if( conshdlrdata->consupgrades[i]->consupgd == nlconsupgd )
12629 SCIPwarningMessage(
scip,
"Try to add already known upgrade method for constraint handler <%s>.\n", conshdlrname);
12637consupgrade->consupgd = nlconsupgd;
12638consupgrade->
priority= priority;
12643assert(conshdlrdata->nconsupgrades+1 <= conshdlrdata->consupgradessize);
12645 for( i = conshdlrdata->nconsupgrades; i > 0 && conshdlrdata->consupgrades[i-1]->priority < consupgrade->
priority; --i )
12646conshdlrdata->consupgrades[i] = conshdlrdata->consupgrades[i-1];
12647assert(0 <= i && i <= conshdlrdata->nconsupgrades);
12648conshdlrdata->consupgrades[i] = consupgrade;
12649conshdlrdata->nconsupgrades++;
12699 if( conshdlr ==
NULL)
12707initial, separate, enforce, check, propagate, local, modifiable, dynamic, removable) );
12777assert(nlinvars == 0 || (linvars !=
NULL&& lincoefs !=
NULL));
12778assert(nquadterms == 0 || (quadvars1 !=
NULL&& quadvars2 !=
NULL&& quadcoefs !=
NULL));
12782 if( conshdlr ==
NULL)
12789 SCIP_CALL(
SCIPcreateExprQuadratic(
scip, &expr, nlinvars, linvars, lincoefs, nquadterms, quadvars1, quadvars2, quadcoefs, exprownerCreate, (
void*)conshdlr) );
12790assert(expr !=
NULL);
12794initial, separate, enforce, check, propagate, local, modifiable, dynamic, removable) );
12825 SCIP_CALL(
SCIPcreateConsQuadraticNonlinear(
scip, cons, name, nlinvars, linvars, lincoefs, nquadterms, quadvars1, quadvars2, quadcoefs, lhs, rhs,
12857assert(vars !=
NULL|| nvars == 0);
12860 for( i = 0; i < nvars; ++i )
12866 if( offsets !=
NULL&& offsets[i] != 0.0 )
12885termcoefs[0] = 1.0;
12888termcoefs[1] = -rhscoeff;
12926assert(
x!=
NULL);
12927assert(z !=
NULL);
12930 if( xoffset != 0.0 )
12965assert(conshdlr !=
NULL);
12968 returnconshdlrdata->curboundstag;
12978assert(conshdlr !=
NULL);
12981 returnconshdlrdata->lastboundrelax;
12998assert(conshdlrdata !=
NULL);
13000++conshdlrdata->curboundstag;
13001assert(conshdlrdata->curboundstag > 0);
13004conshdlrdata->lastboundrelax = conshdlrdata->curboundstag;
13012assert(conshdlr !=
NULL);
13041assert(nlhdlr !=
NULL);
13042assert(cons !=
NULL);
13043assert(expr !=
NULL);
13044assert(rowprep !=
NULL);
13045assert(auxvar !=
NULL);
13046assert(result !=
NULL);
13055assert(conshdlrdata !=
NULL);
13057sepasuccess =
TRUE;
13060 if( cutviol > 0.0 )
13081 if( (!overestimate && ( cutviol <= conshdlrdata->weakcutthreshold * (auxvalue - auxvarvalue))) ||
13082( overestimate && (-cutviol >= conshdlrdata->weakcutthreshold * (auxvalue - auxvarvalue))) )
13085 "weak: auxvarvalue %g estimateval %g auxvalue %g (over %d)\n",
13087auxvarvalue + (overestimate ? -cutviol : cutviol), auxvalue, overestimate); )
13088sepasuccess =
FALSE;
13093estimateval = auxvarvalue + (!overestimate ? cutviol : -cutviol);
13097sepasuccess =
FALSE;
13106 "estimateval %g auxvalue %g (over %d)\n ",
SCIPnlhdlrGetName(nlhdlr), auxvarvalue,
13107auxvarvalue + (overestimate ? -cutviol : cutviol), auxvalue, overestimate);
13113 if( !allowweakcuts )
13117 if( !sepasuccess )
13125 "min requ viol = %g\n", cutviol, sepasuccess ?
"":
"not ", mincutviolation); )
13127sepasuccess = cutviol > mincutviolation;
13151 if( auxvarcoef == 0.0 ||
13152(!overestimate && ( cutviol / auxvarcoef <= conshdlrdata->weakcutthreshold * (auxvalue - auxvarvalue))) ||
13153( overestimate && (-cutviol / auxvarcoef >= conshdlrdata->weakcutthreshold * (auxvalue - auxvarvalue))) )
13155 ENFOLOG(
SCIPinfoMessage(
scip, enfologfile,
" cut is too weak after cleanup: auxvarvalue %g estimateval %g auxvalue %g (over %d)\n",
13156auxvarvalue, auxvarvalue + (overestimate ? -cutviol : cutviol) / auxvarcoef, auxvalue, overestimate); )
13157sepasuccess =
FALSE;
13168 if( !branchscoresuccess )
13173 if( !sepasuccess )
13186#ifdef BRSCORE_ABSVIOL 13211 if( conshdlrdata->branchdualweight > 0.0 )
13218 else if( !
SCIPisEQ(
scip, auxvalue, estimateval) )
13222(void) sprintf(gap,
"_estimategap=%g",
REALABS(auxvalue - estimateval));
13248 SCIP_CALL(
SCIPaddRow(
scip, row, conshdlrdata->forcestrongcut && !allowweakcuts && inenforcement, &infeasible) );
13251 if( conshdlrdata->rownotremovable ==
'a'|| (conshdlrdata->rownotremovable ==
'e'&& inenforcement) )
13268 else if( branchscoresuccess )
13281 "branching candidates%s\n",
SCIPnlhdlrGetName(nlhdlr), (allowweakcuts && inenforcement) ?
13295assert(conshdlr !=
NULL);
13298assert(conshdlrdata !=
NULL);
13300 returnconshdlrdata->assumeconvex;
13315assert(conshdlr !=
NULL);
13316assert(conss !=
NULL|| nconss == 0);
13333assert(conshdlr !=
NULL);
13336assert(conshdlrdata !=
NULL);
13338 returnconshdlrdata->nbilinterms;
13352assert(conshdlr !=
NULL);
13355assert(conshdlrdata !=
NULL);
13357 returnconshdlrdata->bilinterms;
13375assert(conshdlr !=
NULL);
13376assert(
x!=
NULL);
13377assert(
y!=
NULL);
13380assert(conshdlrdata !=
NULL);
13382 if( conshdlrdata->bilinhashtable ==
NULL)
13398assert(idx >= -1 && idx < conshdlrdata->nbilinterms);
13399assert(idx < 0 || conshdlrdata->bilinterms[idx].
x==
x);
13400assert(idx < 0 || conshdlrdata->bilinterms[idx].
y==
y);
13419assert(conshdlr !=
NULL);
13420assert(
x!=
NULL);
13421assert(
y!=
NULL);
13424assert(conshdlrdata !=
NULL);
13427assert(idx >= -1 && idx < conshdlrdata->nbilinterms);
13431 return&conshdlrdata->bilinterms[idx];
13447assert(
x!=
NULL);
13448assert(
y!=
NULL);
13449assert(auxexpr !=
NULL);
13471assert(conshdlr !=
NULL);
13474assert(conshdlrdata !=
NULL);
13478term = &conshdlrdata->bilinterms[idx];
13479assert(term !=
NULL);
13484 if( auxvar !=
NULL)
13486term->
aux.
var= auxvar;
13515assert(conshdlr !=
NULL);
13518assert(conshdlrdata !=
NULL);
13520nlockspos = overestimate ? 1 : 0;
13521nlocksneg = overestimate ? 0 : 1;
13525term = &conshdlrdata->bilinterms[idx];
13526assert(term !=
NULL);
13536 if( conshdlrdata->bilinmaxnauxexprs <= 1 )
13540auxvarexpr->
cst= 0.0;
13541auxvarexpr->
coefs[0] = 1.0;
13542auxvarexpr->
coefs[1] = 0.0;
13543auxvarexpr->
coefs[2] = 0.0;
13561auxexpr->
auxvar= auxvar;
13562auxexpr->
coefs[0] = coefaux;
13563 if( term->
x==
x)
13565assert(term->
y==
y);
13566auxexpr->
coefs[1] = coefx;
13567auxexpr->
coefs[2] = coefy;
13571assert(term->
x==
y);
13572assert(term->
y==
x);
13573auxexpr->
coefs[1] = coefy;
13574auxexpr->
coefs[2] = coefx;
13576auxexpr->
cst= cst;
13583 else if( auxvar !=
NULL)
13612 unsigned intncorners;
13617assert(conshdlr !=
NULL);
13618assert(function !=
NULL);
13619assert(xstar !=
NULL);
13620assert(box !=
NULL);
13621assert(success !=
NULL);
13622assert(facetcoefs !=
NULL);
13623assert(facetconstant !=
NULL);
13630 for( j = 0; j < nallvars; ++j )
13634nonfixedpos[nvars] = j;
13652 for( j = 0; j < nallvars; ++j )
13655corner[j] = (box[2 * j] + box[2 * j + 1]) / 2.0;
13657 for( i = 0; i < ncorners; ++i )
13660 for( j = 0; j < nvars; ++j )
13662 intvarpos = nonfixedpos[j];
13666 if( (i >> j) & 0x1 )
13667corner[varpos] = box[2 * varpos + 1];
13669corner[varpos] = box[2 * varpos ];
13674funvals[i] = function(corner, nallvars, fundata);
13680 SCIPdebugMsg(
scip,
"cannot compute underestimator; function value at corner is too large %g\n", funvals[i]);
13693 if( *success && overestimate == (*facetconstant + facetcoefs[nonfixedpos[0]] * xstar[nonfixedpos[0]] > targetvalue) )
13695 SCIPdebugMsg(
scip,
"computed secant, but missed target %g (facetvalue=%g, overestimate=%u)\n", targetvalue, *facetconstant + facetcoefs[nonfixedpos[0]] * xstar[nonfixedpos[0]], overestimate);
13701 intidx1 = nonfixedpos[0];
13702 intidx2 = nonfixedpos[1];
13703 SCIP_Realp1[2] = { box[2*idx1], box[2*idx2] };
13704 SCIP_Realp2[2] = { box[2*idx1+1], box[2*idx2] };
13705 SCIP_Realp3[2] = { box[2*idx1], box[2*idx2+1] };
13706 SCIP_Realp4[2] = { box[2*idx1+1], box[2*idx2+1] };
13707 SCIP_Realxstar2[2] = { xstar[idx1], xstar[idx2] };
13710 SCIP_CALL(
computeVertexPolyhedralFacetBivariate(
scip, overestimate, p1, p2, p3, p4, funvals[0], funvals[1], funvals[2], funvals[3], xstar2, targetvalue, success, coefs, facetconstant) );
13712facetcoefs[idx1] = coefs[0];
13713facetcoefs[idx2] = coefs[1];
13717 SCIP_CALL(
computeVertexPolyhedralFacetLP(
scip, conshdlr, overestimate, xstar, box, nallvars, nonfixedpos, funvals, nvars, targetvalue, success, facetcoefs, facetconstant) );
13732 if( maxfaceterror > 0.0 )
13741 for( j = 0; j < nvars; ++j )
13742corner[nonfixedpos[j]] = (box[2 * nonfixedpos[j]] + box[2 * nonfixedpos[j] + 1]) / 2.0;
13743midval = function(corner, nallvars, fundata);
13748assert(conshdlrdata !=
NULL);
13751 if( maxfaceterror > conshdlrdata->vp_adjfacetthreshold * feastol * fabs(midval) )
13753 SCIPdebugMsg(
scip,
"ignoring facet due to instability, it cuts off a vertex by %g (midval=%g).\n", maxfaceterror, midval);
13758 SCIPdebugMsg(
scip,
"maximum facet error %g (midval=%g), adjust constant to make cut valid!\n", maxfaceterror, midval);
13760 if( overestimate )
13761*facetconstant += maxfaceterror;
13763*facetconstant -= maxfaceterror;
13789assert(cons !=
NULL);
13793assert(consdata !=
NULL);
13795 returnconsdata->expr;
13805assert(cons !=
NULL);
13809assert(consdata !=
NULL);
13811 returnconsdata->lhs;
13821assert(cons !=
NULL);
13825assert(consdata !=
NULL);
13827 returnconsdata->rhs;
13839assert(cons !=
NULL);
13840assert(nlrow !=
NULL);
13844assert(consdata !=
NULL);
13846 if( consdata->nlrow ==
NULL)
13850assert(consdata->nlrow !=
NULL);
13851*nlrow = consdata->nlrow;
13866assert(cons !=
NULL);
13870assert(consdata !=
NULL);
13872 returnconsdata->curv;
13890assert(cons !=
NULL);
13891assert(isquadratic !=
NULL);
13895assert(consdata !=
NULL);
13896assert(consdata->expr !=
NULL);
13902 if( *isquadratic )
13921assert(cons !=
NULL);
13926 SCIPerrorMessage(
"SCIPchgLhsNonlinear can only be called in problem stage.\n");
13934assert(consdata !=
NULL);
13936 if( consdata->lhs == lhs )
13939consdata->lhs = lhs;
13942consdata->ispropagated =
FALSE;
13960assert(cons !=
NULL);
13965 SCIPerrorMessage(
"SCIPchgLhsNonlinear can only be called in problem stage.\n");
13973assert(consdata !=
NULL);
13975 if( consdata->rhs == rhs )
13978consdata->rhs = rhs;
13981consdata->ispropagated =
FALSE;
14000assert(cons !=
NULL);
14001assert(expr !=
NULL);
14005 SCIPerrorMessage(
"SCIPchgExprNonlinear can only be called in problem stage.\n");
14013assert(conshdlr !=
NULL);
14017assert(consdata !=
NULL);
14018assert(consdata->expr !=
NULL);
14023assert(consdata->nvarexprs == 0);
14024assert(consdata->varexprs ==
NULL);
14025assert(!consdata->catchedevents);
14034consdata->issimplified =
FALSE;
14035consdata->ispropagated =
FALSE;
14056assert(cons !=
NULL);
14060 SCIPerrorMessage(
"SCIPaddLinearVarNonlinear can only be called in problem stage.\n");
14071assert(conshdlr !=
NULL);
14075assert(consdata !=
NULL);
14076assert(consdata->expr !=
NULL);
14081assert(consdata->nvarexprs == 0);
14082assert(consdata->varexprs ==
NULL);
14083assert(!consdata->catchedevents);
14095 SCIP_EXPR* children[2] = { consdata->expr, varexpr };
14107consdata->issimplified =
FALSE;
14108consdata->ispropagated =
FALSE;
14129assert(cons !=
NULL);
14133 SCIPerrorMessage(
"SCIPaddExprNonlinear can only be called in problem stage.\n");
14144assert(conshdlr !=
NULL);
14148assert(consdata !=
NULL);
14149assert(consdata->expr !=
NULL);
14170 SCIP_EXPR* children[2] = { consdata->expr, exprowned };
14182consdata->issimplified =
FALSE;
14183consdata->ispropagated =
FALSE;
14202assert(cons !=
NULL);
14203assert(activity !=
NULL);
14206assert(consdata !=
NULL);
14227assert(cons !=
NULL);
14228assert(viol !=
NULL);
14250assert(cons !=
NULL);
14251assert(viol !=
NULL);
14269assert(cons !=
NULL);
14270assert(var !=
NULL);
14271assert(coef !=
NULL);
14277assert(consdata !=
NULL);
14279*var = consdata->linvardecr;
14280*coef = consdata->linvardecrcoef;
14293assert(cons !=
NULL);
14294assert(var !=
NULL);
14295assert(coef !=
NULL);
14301assert(consdata !=
NULL);
14303*var = consdata->linvarincr;
14304*coef = consdata->linvarincrcoef;
14317assert(expr !=
NULL);
14328assert(expr !=
NULL);
14344assert(expr !=
NULL);
14347assert(ownerdata !=
NULL);
14349 returnownerdata->filterpos >= -1 ?
SCIPgetVarExprVar(expr) : ownerdata->auxvar;
14357assert(expr !=
NULL);
14377assert(expr !=
NULL);
14380assert(ownerdata !=
NULL);
14382assert(idx < ownerdata->nenfos);
14383assert(ownerdata->enfos[idx] !=
NULL);
14384assert(nlhdlr !=
NULL);
14386*nlhdlr = ownerdata->enfos[idx]->nlhdlr;
14388 if( nlhdlrexprdata !=
NULL)
14389*nlhdlrexprdata = ownerdata->enfos[idx]->nlhdlrexprdata;
14391 if( nlhdlrparticipation !=
NULL)
14392*nlhdlrparticipation = ownerdata->enfos[idx]->nlhdlrparticipation;
14394 if( sepabelowusesactivity !=
NULL)
14395*sepabelowusesactivity = ownerdata->enfos[idx]->sepabelowusesactivity;
14397 if( sepaaboveusesactivity !=
NULL)
14398*sepaaboveusesactivity = ownerdata->enfos[idx]->sepaaboveusesactivity;
14400 if( auxvalue !=
NULL)
14401*auxvalue = ownerdata->enfos[idx]->auxvalue;
14413assert(expr !=
NULL);
14416assert(ownerdata !=
NULL);
14419assert(idx < ownerdata->nenfos);
14420assert(ownerdata->enfos[idx] !=
NULL);
14422ownerdata->enfos[idx]->auxvalue = auxvalue;
14433assert(expr !=
NULL);
14447assert(expr !=
NULL);
14461assert(expr !=
NULL);
14491assert(expr !=
NULL);
14494assert(ownerdata !=
NULL);
14498useauxvar =
FALSE;
14500 if( ownerdata->nenfos >= 0 &&
14501( (ownerdata->nactivityusesprop == 0 && ownerdata->nactivityusessepa == 0 && (useactivityforprop || useactivityforsepabelow || useactivityforsepaabove)) ||
14502(ownerdata->nauxvaruses == 0 && useauxvar)
14514++ownerdata->nauxvaruses;
14516 if( useactivityforprop )
14517++ownerdata->nactivityusesprop;
14519 if( useactivityforsepabelow || useactivityforsepaabove )
14520++ownerdata->nactivityusessepa;
14525 if( useactivityforsepabelow )
14527 if( useactivityforsepaabove )
14530 if( useactivityforprop )
14539 if( (useactivityforsepabelow || useactivityforsepaabove) &&
SCIPexprGetNChildren(expr) > 0 )
14581assert(expr !=
NULL);
14582assert(viol !=
NULL);
14616assert(expr !=
NULL);
14617assert(viol !=
NULL);
14648assert(expr !=
NULL);
14649assert(viol !=
NULL);
14683assert(expr !=
NULL);
14686assert(ownerdata !=
NULL);
14689assert(conshdlrdata !=
NULL);
14694 if( ownerdata->propboundstag == conshdlrdata->curpropboundstag )
14696bounds = ownerdata->propbounds;
14709 if( ownerdata->auxvar !=
NULL)
14714auxvarbounds = conshdlrdata->intevalvar(
scip, ownerdata->auxvar, conshdlrdata);
14741assert(expr !=
NULL);
14742assert(cutoff !=
NULL);
14745assert(ownerdata !=
NULL);
14746assert(ownerdata->conshdlr !=
NULL);
14749assert(conshdlrdata !=
NULL);
14790 SCIPdebugMsg(
scip,
" cut off due to new bounds being beyond infinity\n");
14797 if( ownerdata->propboundstag == conshdlrdata->curpropboundstag )
14810 SCIPdebugMsg(
scip,
" applied %s: [%.20g,%.20g]\n", ownerdata->propboundstag == conshdlrdata->curpropboundstag ?
"previous propbounds":
"activity", newbounds.
inf, newbounds.
sup);
14816 SCIPdebugMsg(
scip,
" cut off due to empty intersection with previous propbounds or activity\n");
14828ownerdata->propbounds = newbounds;
14829ownerdata->propboundstag = conshdlrdata->curpropboundstag;
14843 SCIPdebugMsg(
scip,
" new bounds [%g,%g] for expr %p not sufficiently tighter than activity -- not adding to propqueue or tightening auxvar\n", newbounds.
inf, newbounds.
sup, (
void*)expr);
14848 if(
SCIPexprGetNChildren(expr) > 0 && !ownerdata->inpropqueue && (ownerdata->nactivityusesprop > 0 || ownerdata->nactivityusessepa > 0 || ownerdata->nenfos < 0) )
14857ownerdata->inpropqueue =
TRUE;
14886assert(expr !=
NULL);
14889assert(ownerdata !=
NULL);
14902assert(ownerdata !=
NULL);
14904 for( c = 0; c < ownerdata->nconss; ++c )
14907assert(consdata !=
NULL);
14908consdata->ispropagated =
FALSE;
14938assert(expr !=
NULL);
14939assert(violscore >= 0.0);
14942assert(ownerdata !=
NULL);
14945assert(conshdlrdata !=
NULL);
14953 if( ownerdata->violscoretag != conshdlrdata->enforound )
14955ownerdata->violscoresum = violscore;
14956ownerdata->violscoremax = violscore;
14957ownerdata->nviolscores = 1;
14958ownerdata->violscoretag = conshdlrdata->enforound;
14962ownerdata->violscoresum += violscore;
14963 if( violscore > ownerdata->violscoremax )
14964ownerdata->violscoremax = violscore;
14965++ownerdata->nviolscores;
14990assert(exprs !=
NULL|| nexprs == 0);
14991assert(success !=
NULL);
15014 for( i = 0; i < nexprs; ++i )
15018assert(e !=
NULL);
15023 if( varssize == nvars )
15028assert(varssize > nvars);
15030varexprs[nvars++] = e;
15052assert(expr !=
NULL);
15055assert(ownerdata !=
NULL);
15058assert(conshdlrdata !=
NULL);
15060 if( conshdlrdata->enforound != ownerdata->violscoretag )
15063 if( ownerdata->nviolscores == 0 )
15066 switch( conshdlrdata->branchscoreagg )
15070 returnownerdata->violscoresum / ownerdata->nviolscores;
15074 returnownerdata->violscoremax;
15078 returnownerdata->violscoresum;
15081 SCIPerrorMessage(
"Invalid value %c for branchscoreagg parameter\n", conshdlrdata->branchscoreagg);
15102assert(expr !=
NULL);
15103assert(var !=
NULL);
15117assert(ownerdata !=
NULL);
15120assert(conshdlrdata !=
NULL);
15126assert(varexpr !=
NULL);
15148assert(expr !=
NULL);
15149assert(var !=
NULL);
15160assert(ownerdata !=
NULL);
15163assert(conshdlrdata !=
NULL);
15172assert(varexpr !=
NULL);
15198assert(expr !=
NULL);
15203 for( i = 0; i < nlinexprs; ++i )
15210 for( i = 0; i < nquadexprs; ++i )
15222auxvalue += (lincoef + sqrcoef * solval) * solval;
15226 for( i = 0; i < nbilinexprs; ++i )
15252 intdetectpriority,
15263assert(nlhdlr !=
NULL);
15264assert(detect !=
NULL);
15268 if( conshdlr ==
NULL)
15279assert(conshdlrdata !=
NULL);
15283conshdlrdata->nlhdlrs[conshdlrdata->nnlhdlrs] = *nlhdlr;
15284++conshdlrdata->nnlhdlrs;
15290 SCIPsortDownPtr((
void**)conshdlrdata->nlhdlrs, SCIPnlhdlrComp, conshdlrdata->nnlhdlrs);
15302assert(conshdlr !=
NULL);
15305assert(conshdlrdata !=
NULL);
15307 returnconshdlrdata->nnlhdlrs;
15317assert(conshdlr !=
NULL);
15320assert(conshdlrdata !=
NULL);
15322 returnconshdlrdata->nlhdlrs;
15334assert(conshdlr !=
NULL);
15335assert(name !=
NULL);
15338assert(conshdlrdata !=
NULL);
15340 for(
h= 0;
h< conshdlrdata->nnlhdlrs; ++
h)
15342 returnconshdlrdata->nlhdlrs[
h];
15359assert(nlhdlr !=
NULL);
15360assert(expr !=
NULL);
15363assert(ownerdata !=
NULL);
15365 for( e = 0; e < ownerdata->nenfos; ++e )
15366 if( ownerdata->enfos[e]->nlhdlr == nlhdlr )
15367 returnownerdata->enfos[e]->nlhdlrexprdata;
SCIP_DECL_CONSDELVARS(ConshdlrSubtour::scip_delvars)
static GRAPHNODE ** active
Constraint handler for AND constraints, .
constraint handler for bound disjunction constraints
Constraint handler for linear constraints in their most general form, .
static SCIP_Bool isBinaryProduct(SCIP *scip, SCIP_EXPR *expr)
static SCIP_RETCODE createExprVar(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_EXPR **expr, SCIP_VAR *var)
static SCIP_Real computeVertexPolyhedralMaxFacetError(SCIP *scip, SCIP_Bool overestimate, SCIP_Real *funvals, SCIP_Real *box, int nallvars, int nvars, int *nonfixedpos, SCIP_Real *facetcoefs, SCIP_Real facetconstant)
static SCIP_Bool isEvenOperator(SCIP *scip, SCIP_EXPR *expr, SCIP_Bool *hasvalue, SCIP_Real *value)
static SCIP_RETCODE enforceConstraint(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Longint soltag, SCIP_EXPRITER *it, SCIP_Bool allowweakcuts, SCIP_Bool inenforcement, SCIP_Bool branchcandonly, SCIP_RESULT *result, SCIP_Bool *success)
static SCIP_DECL_CONSGETPERMSYMGRAPH(consGetPermsymGraphNonlinear)
static SCIP_RETCODE tryAddGadgetEvenOperatorVariable(SCIP *scip, SCIP_EXPR *evenopexpr, SCIP_EXPR *child, SCIP_CONS *cons, SYM_GRAPH *graph, int parentidx, SCIP_Bool hasparentcoef, SCIP_Real parentcoef, SCIP_Bool hassymval, SCIP_Real symval, SCIP_VAR ***consvars, SCIP_Real **consvals, int *maxnconsvars, SCIP_Bool *success)
static SCIP_DECL_CONSDEACTIVE(consDeactiveNonlinear)
#define CONSHDLR_NEEDSCONS
#define CONSHDLR_SEPAFREQ
static SCIP_RETCODE analyzeViolation(SCIP *scip, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_Longint soltag, SCIP_Real *maxabsconsviol, SCIP_Real *maxrelconsviol, SCIP_Real *minauxviol, SCIP_Real *maxauxviol, SCIP_Real *maxvarboundviol)
static SCIP_RETCODE presolveRedundantConss(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Bool *cutoff, int *ndelconss, int *nchgbds)
static SCIP_RETCODE enforceExpr(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_EXPR *expr, SCIP_SOL *sol, SCIP_Longint soltag, SCIP_Bool allowweakcuts, SCIP_Bool inenforcement, SCIP_Bool branchcandonly, SCIP_RESULT *result)
static SCIP_DECL_EXPR_OWNERPRINT(exprownerPrint)
static SCIP_RETCODE reversePropQueue(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_Bool *infeasible, int *ntightenings)
#define BRANCH_RANDNUMINITSEED
static SCIP_RETCODE dropVarEvent(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_EXPR *expr, SCIP_CONS *cons)
static SCIP_DECL_CONSCHECK(consCheckNonlinear)
static SCIP_RETCODE forbidNonlinearVariablesMultiaggration(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss)
static SCIP_RETCODE computeHyperplaneThreePoints(SCIP *scip, SCIP_Real a1, SCIP_Real a2, SCIP_Real a3, SCIP_Real b1, SCIP_Real b2, SCIP_Real b3, SCIP_Real c1, SCIP_Real c2, SCIP_Real c3, SCIP_Real *alpha, SCIP_Real *beta, SCIP_Real *gamma_, SCIP_Real *delta)
static SCIP_RETCODE propagateLocks(SCIP *scip, SCIP_EXPR *expr, int nlockspos, int nlocksneg)
static SCIP_DECL_CONSPRINT(consPrintNonlinear)
#define CONSHDLR_CHECKPRIORITY
static SCIP_RETCODE registerBranchingCandidates(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Bool *success)
static SCIP_DECL_CONSENABLE(consEnableNonlinear)
static SCIP_RETCODE bilinTermAddAuxExpr(SCIP *scip, SCIP_CONSHDLRDATA *conshdlrdata, SCIP_CONSNONLINEAR_BILINTERM *term, SCIP_CONSNONLINEAR_AUXEXPR *auxexpr, SCIP_Bool *added)
static SCIP_RETCODE freeVarExprs(SCIP *scip, SCIP_CONSDATA *consdata)
static SCIP_RETCODE proposeFeasibleSolution(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_Bool *success)
static void scoreBranchingCandidates(SCIP *scip, SCIP_CONSHDLR *conshdlr, BRANCHCAND *cands, int ncands, SCIP_Bool considerfracnl, SCIP_SOL *sol)
#define consRespropNonlinear
static SCIP_DECL_CONSPARSE(consParseNonlinear)
static SCIP_DECL_HASHKEYEQ(bilinearTermsIsHashkeyEq)
static SCIP_RETCODE consSepa(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_RESULT *result)
#define CONSHDLR_PROP_TIMING
static void addExprsViolScore(SCIP *scip, SCIP_EXPR **exprs, int nexprs, SCIP_Real violscore, SCIP_SOL *sol, SCIP_Bool *success)
static SCIP_RETCODE tightenAuxVarBounds(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_EXPR *expr, SCIP_INTERVAL bounds, SCIP_Bool *cutoff, int *ntightenings)
static SCIP_DECL_CONSLOCK(consLockNonlinear)
#define TABLE_DESC_NLHDLR
static SCIP_DECL_CONSPRESOL(consPresolNonlinear)
static SCIP_RETCODE replaceBinaryProducts(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_HASHMAP *exprmap, SCIP_EXPRITER *it, int *naddconss, int *nchgcoefs)
static SCIP_RETCODE computeVertexPolyhedralFacetBivariate(SCIP *scip, SCIP_Bool overestimate, SCIP_Real p1[2], SCIP_Real p2[2], SCIP_Real p3[2], SCIP_Real p4[2], SCIP_Real p1val, SCIP_Real p2val, SCIP_Real p3val, SCIP_Real p4val, SCIP_Real xstar[2], SCIP_Real targetvalue, SCIP_Bool *success, SCIP_Real *facetcoefs, SCIP_Real *facetconstant)
static SCIP_RETCODE tryAddGadgetEvenOperator(SCIP *scip, SCIP_EXPR *expr, SCIP_CONS *cons, SYM_GRAPH *graph, int parentidx, SCIP_Bool hasparentcoef, SCIP_Real parentcoef, SCIP_VAR ***consvars, SCIP_Real **consvals, int *maxnconsvars, SCIP_HASHSET *handledexprs, SCIP_Bool *success)
#define consInitpreNonlinear
static SCIP_RETCODE addExprViolScoresAuxVars(SCIP *scip, SCIP_EXPR *expr, SCIP_Real violscore, SCIP_VAR **auxvars, int nauxvars, SCIP_SOL *sol, SCIP_Bool *success)
static SCIP_RETCODE detectNlhdlr(SCIP *scip, SCIP_EXPR *expr, SCIP_CONS *cons)
#define CONSHDLR_MAXPREROUNDS
static SCIP_RETCODE computeVertexPolyhedralFacetLP(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_Bool overestimate, SCIP_Real *xstar, SCIP_Real *box, int nallvars, int *nonfixedpos, SCIP_Real *funvals, int nvars, SCIP_Real targetvalue, SCIP_Bool *success, SCIP_Real *facetcoefs, SCIP_Real *facetconstant)
static SCIP_DECL_CONSENFORELAX(consEnforelaxNonlinear)
static SCIP_DECL_EXPR_OWNERFREE(exprownerFree)
#define TABLE_EARLIEST_STAGE_NLHDLR
#define VERTEXPOLY_RANDNUMINITSEED
static SCIP_DECL_CONSINIT(consInitNonlinear)
static SCIP_RETCODE getFactorizedBinaryQuadraticExpr(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_EXPR *sumexpr, int minterms, SCIP_EXPR **newexpr, int *naddconss)
#define consDelvarsNonlinear
static SCIP_RETCODE reformulateFactorizedBinaryQuadratic(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_VAR *facvar, SCIP_VAR **vars, SCIP_Real *coefs, int nvars, SCIP_EXPR **newexpr, int *naddconss)
#define CONSHDLR_SEPAPRIORITY
static SCIP_RETCODE getConsRelViolation(SCIP *scip, SCIP_CONS *cons, SCIP_Real *viol, SCIP_SOL *sol, SCIP_Longint soltag)
#define consGetDiveBdChgsNonlinear
static SCIP_Bool isConsViolated(SCIP *scip, SCIP_CONS *cons)
static SCIP_DECL_CONSGETSIGNEDPERMSYMGRAPH(consGetSignedPermsymGraphNonlinear)
static SCIP_RETCODE getBinaryProductExprDo(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_EXPR *prodexpr, SCIP_EXPR **newexpr, int *naddconss, SCIP_Bool empathy4and)
static SCIP_RETCODE registerBranchingCandidatesAllUnfixed(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, int *nnotify)
static SCIP_Bool isIntervalBetter(SCIP *scip, SCIP_Bool subsetsufficient, SCIP_INTERVAL newinterval, SCIP_INTERVAL oldinterval)
static SCIP_RETCODE detectNlhdlrs(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss)
#define TABLE_EARLIEST_STAGE_NONLINEAR
static SCIP_RETCODE getBinaryProductExpr(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_HASHMAP *exprmap, SCIP_EXPR *prodexpr, SCIP_EXPR **newexpr, int *naddconss, int *nchgcoefs)
static SCIP_RETCODE catchVarEvents(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_CONS *cons)
static SCIP_DECL_EVENTEXEC(processVarEvent)
#define TABLE_DESC_NONLINEAR
static SCIP_RETCODE createAuxVar(SCIP *scip, SCIP_EXPR *expr)
static SCIP_Real getViolSplitWeight(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_VAR *var, SCIP_SOL *sol)
static SCIP_DECL_CONSSEPASOL(consSepasolNonlinear)
static SCIP_RETCODE freeEnfoData(SCIP *scip, SCIP_EXPR *expr, SCIP_Bool freeauxvar)
#define infty2infty(infty1, infty2, val)
static SCIP_RETCODE getBilinearBinaryTerms(SCIP *scip, SCIP_EXPR *sumexpr, SCIP_VAR **xs, SCIP_VAR **ys, int *childidxs, int *nterms)
static SCIP_RETCODE storeVarExprs(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONSDATA *consdata)
static SCIP_RETCODE buildVertexPolyhedralSeparationLP(SCIP *scip, int nvars, SCIP_LPI **lp)
static SCIP_RETCODE tryAddGadgetSquaredDifference(SCIP *scip, SCIP_EXPR *sumexpr, SCIP_CONS *cons, SYM_GRAPH *graph, int sumnodeidx, SCIP_VAR ***consvars, SCIP_Real **consvals, int *maxnconsvars, SCIP_HASHSET *handledexprs)
static SCIP_RETCODE tryAddGadgetBilinearProductSignedPerm(SCIP *scip, SCIP_EXPR *expr, SCIP_CONS *cons, SYM_GRAPH *graph, int parentidx, SCIP_Bool hasparentcoef, SCIP_Real parentcoef, SCIP_VAR ***consvars, SCIP_Real **consvals, int *maxnconsvars, SCIP_HASHSET *handledexprs, SCIP_Bool *success)
static SCIP_RETCODE addSymmetryInformation(SCIP *scip, SYM_SYMTYPE symtype, SCIP_CONS *cons, SYM_GRAPH *graph, SCIP_Bool *success)
static SCIP_RETCODE propConss(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Bool force, SCIP_RESULT *result, int *nchgbds)
static SCIP_RETCODE presolveUpgrade(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_Bool *upgraded, int *nupgdconss, int *naddconss)
static SCIP_RETCODE forwardPropExpr(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_EXPR *rootexpr, SCIP_Bool tightenauxvars, SCIP_Bool *infeasible, int *ntightenings)
static SCIP_RETCODE consEnfo(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_RESULT *result)
static SCIP_Bool isSingleLockedCand(SCIP *scip, SCIP_EXPR *expr)
static SCIP_DECL_CONSCOPY(consCopyNonlinear)
static SCIP_Bool branchAuxNonlinear(SCIP *scip, SCIP_CONSHDLR *conshdlr)
static SCIP_RETCODE presolveImplint(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, int *nchgvartypes, SCIP_Bool *infeasible)
#define TABLE_NAME_NONLINEAR
static SCIP_DECL_CONSEXITSOL(consExitsolNonlinear)
#define TABLE_NAME_NLHDLR
static SCIP_RETCODE tryAddGadgetEvenOperatorSum(SCIP *scip, SCIP_EXPR *evenopexpr, SCIP_EXPR *child, SCIP_CONS *cons, SYM_GRAPH *graph, int parentidx, SCIP_Bool hasparentcoef, SCIP_Real parentcoef, SCIP_Bool hassymval, SCIP_Real symval, SCIP_VAR ***consvars, SCIP_Real **consvals, int *maxnconsvars, SCIP_HASHSET *handledexprs, SCIP_Bool *success)
static SCIP_Real getDualBranchscore(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_VAR *var)
static SCIP_DECL_CONSINITLP(consInitlpNonlinear)
static SCIP_RETCODE deinitSolve(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss)
static SCIP_RETCODE ensureLocVarsArraySize(SCIP *scip, SCIP_VAR ***vars, SCIP_Real **vals, int nelems, int *maxnelems)
static SCIP_RETCODE createNlRow(SCIP *scip, SCIP_CONS *cons)
static SCIP_DECL_CONSSEPALP(consSepalpNonlinear)
static SCIP_RETCODE enforceExprNlhdlr(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_NLHDLR *nlhdlr, SCIP_EXPR *expr, SCIP_NLHDLREXPRDATA *nlhdlrexprdata, SCIP_SOL *sol, SCIP_Real auxvalue, SCIP_Bool overestimate, SCIP_Bool separated, SCIP_Bool allowweakcuts, SCIP_Bool inenforcement, SCIP_Bool branchcandonly, SCIP_RESULT *result)
static SCIP_RETCODE selectBranchingCandidate(SCIP *scip, SCIP_CONSHDLR *conshdlr, BRANCHCAND *cands, int ncands, SCIP_Bool considerfracnl, SCIP_SOL *sol, BRANCHCAND **selected)
static SCIP_DECL_CONSGETVARS(consGetVarsNonlinear)
static SCIP_RETCODE scaleConsSides(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, SCIP_Bool *changed)
static SCIP_DECL_CONSTRANS(consTransNonlinear)
static SCIP_DECL_CONSDISABLE(consDisableNonlinear)
static SCIP_RETCODE computeViolation(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Longint soltag)
static SCIP_DECL_CONSHDLRCOPY(conshdlrCopyNonlinear)
#define VERTEXPOLY_MAXPERTURBATION
static SCIP_RETCODE presolveBinaryProducts(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, int *naddconss, int *nchgcoefs)
static SCIP_DECL_DIALOGEXEC(dialogExecDisplayNlhdlrs)
static SCIP_RETCODE catchVarEvent(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_EXPR *expr, SCIP_CONS *cons)
static SCIP_RETCODE enforceConstraints(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_Longint soltag, SCIP_Bool inenforcement, SCIP_Bool branchcandonly, SCIP_Real maxrelconsviol, SCIP_RESULT *result)
static SCIP_DECL_CONSEXITPRE(consExitpreNonlinear)
static SCIP_DECL_HASHGETKEY(bilinearTermsGetHashkey)
static SCIP_DECL_EXPR_MAPEXPR(mapexprvar)
static SCIP_RETCODE presolveSingleLockedVars(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS *cons, int *nchgvartypes, int *naddconss, SCIP_Bool *infeasible)
static SCIP_DECL_CONSDELETE(consDeleteNonlinear)
#define VERTEXPOLY_USEDUALSIMPLEX
#define CONSHDLR_PROPFREQ
static SCIP_DECL_EXPR_INTEVALVAR(intEvalVarBoundTightening)
static SCIP_Bool varIsCenteredAt0(SCIP *scip, SCIP_VAR *var)
static SCIP_RETCODE initSepa(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Bool *infeasible)
static SCIP_RETCODE computeVertexPolyhedralFacetUnivariate(SCIP *scip, SCIP_Real left, SCIP_Real right, SCIP_Real funleft, SCIP_Real funright, SCIP_Bool *success, SCIP_Real *facetcoef, SCIP_Real *facetconstant)
#define CONSHDLR_PRESOLTIMING
static SCIP_DECL_TABLEOUTPUT(tableOutputNonlinear)
static SCIP_RETCODE collectBranchingCandidates(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Real maxrelconsviol, SCIP_SOL *sol, SCIP_Longint soltag, BRANCHCAND *cands, int *ncands)
static SCIP_RETCODE branching(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Real maxrelconsviol, SCIP_SOL *sol, SCIP_Longint soltag, SCIP_RESULT *result)
static SCIP_RETCODE bilinearTermsInsertAll(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss)
#define VERTEXPOLY_ADJUSTFACETFACTOR
#define TABLE_POSITION_NONLINEAR
static SCIP_RETCODE initSolve(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss)
static SCIP_DECL_EXPR_OWNEREVALACTIVITY(exprownerEvalactivity)
static SCIP_RETCODE removeSingleLockedVars(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPRITER *it, SCIP_HASHMAP *exprcands)
#define CONSHDLR_EAGERFREQ
static SCIP_RETCODE branchingIntegralOrNonlinear(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_Longint soltag, SCIP_Real maxrelconsviol, SCIP_Bool *branchintegral, SCIP_Bool *cutoff)
static SCIP_DECL_CONSGETNVARS(consGetNVarsNonlinear)
static SCIP_DECL_HASHKEYVAL(bilinearTermsGetHashkeyVal)
static void findUnlockedLinearVar(SCIP *scip, SCIP_CONS *cons)
static SCIP_RETCODE addLocks(SCIP *scip, SCIP_CONS *cons, int nlockspos, int nlocksneg)
static SCIP_RETCODE propExprDomains(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_RESULT *result, int *nchgbds)
static SCIP_RETCODE freeAuxVar(SCIP *scip, SCIP_EXPR *expr)
static SCIP_Real getConsAbsViolation(SCIP_CONS *cons)
static SCIP_RETCODE bilinearTermsFree(SCIP *scip, SCIP_CONSHDLRDATA *conshdlrdata)
#define CONSHDLR_ENFOPRIORITY
static SCIP_DECL_CONSENFOLP(consEnfolpNonlinear)
static SCIP_DECL_CONSINITSOL(consInitsolNonlinear)
#define CONSHDLR_DELAYSEPA
static SCIP_DECL_CONSACTIVE(consActiveNonlinear)
static SCIP_DECL_SORTINDCOMP(branchcandCompare)
static SCIP_Bool branchingIntegralFirst(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_SOL *sol)
static SCIP_RETCODE createCons(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **cons, const char *name, SCIP_EXPR *expr, SCIP_Real lhs, SCIP_Real rhs, SCIP_Bool copyexpr, 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)
static SCIP_RETCODE bilinearTermsInsertEntry(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_VAR *x, SCIP_VAR *y, int nlockspos, int nlocksneg, int *idx, SCIP_Bool existing)
static SCIP_RETCODE notifyNlhdlrNewsol(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_SOL *sol, SCIP_Bool solisbest)
static SCIP_Real getExprAbsOrigViolation(SCIP *scip, SCIP_EXPR *expr, SCIP_SOL *sol, SCIP_Bool *violunder, SCIP_Bool *violover)
static SCIP_RETCODE presolveMergeConss(SCIP *scip, SCIP_CONS **conss, int nconss, SCIP_Bool *success)
static SCIP_Real getDomainCenter(SCIP *scip, SCIP_VAR *var)
#define TABLE_POSITION_NLHDLR
static SCIP_RETCODE ensureOpenArraySizeSymdetect(SCIP *scip, int **openidx, int nelems, int *maxnelems)
static SCIP_RETCODE canonicalizeConstraints(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss, SCIP_PRESOLTIMING presoltiming, SCIP_Bool *infeasible, int *ndelconss, int *naddconss, int *nchgcoefs)
static SCIP_RETCODE dropVarEvents(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_CONS *cons)
static SCIP_DECL_CONSFREE(consFreeNonlinear)
static SCIP_DECL_SORTPTRCOMP(compIndexConsNonlinear)
static SCIP_Real getExprAbsAuxViolation(SCIP *scip, SCIP_EXPR *expr, SCIP_Real auxvalue, SCIP_SOL *sol, SCIP_Bool *violunder, SCIP_Bool *violover)
static SCIP_DECL_CONSENFOPS(consEnfopsNonlinear)
static SCIP_DECL_CONSEXIT(consExitNonlinear)
#define CONSHDLR_DELAYPROP
static SCIP_DECL_CONSPROP(consPropNonlinear)
static SCIP_DECL_EXPR_OWNERCREATE(exprownerCreate)
#define BILIN_MAXNAUXEXPRS
constraint handler for nonlinear constraints specified by algebraic expressions
Constraint handler for variable bound constraints .
#define SCIPdebugGetSolVal(scip, var, val)
#define SCIPdebugAddSolVal(scip, var, val)
#define SCIP_INTERVAL_INFINITY
#define SCIP_CALL_ABORT(x)
#define SCIP_LONGINT_FORMAT
default user interface dialog
absolute expression handler
power and signed power expression handlers
handler for sin expressions
constant value expression handler
variable expression handler
handler for variable index expressions
SCIP_Real SCIPevalBilinAuxExprNonlinear(SCIP *scip, SCIP_VAR *x, SCIP_VAR *y, SCIP_CONSNONLINEAR_AUXEXPR *auxexpr, SCIP_SOL *sol)
SCIP_RETCODE SCIPcheckQuadraticNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_Bool *isquadratic)
SCIP_RETCODE SCIPaddLinearVarNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_Real coef)
#define SCIP_DECL_NONLINCONSUPGD(x)
SCIP_RETCODE SCIPmarkExprPropagateNonlinear(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateConsBasicSignpowerNonlinear(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR *x, SCIP_VAR *z, SCIP_Real exponent, SCIP_Real xoffset, SCIP_Real zcoef, SCIP_Real lhs, SCIP_Real rhs)
SCIP_Real SCIPgetExprViolScoreNonlinear(SCIP_EXPR *expr)
unsigned int SCIPgetExprNAuxvarUsesNonlinear(SCIP_EXPR *expr)
SCIP_RETCODE SCIPincludeConsUpgradeNonlinear(SCIP *scip, SCIP_DECL_NONLINCONSUPGD((*nlconsupgd)), int priority, SCIP_Bool active, const char *conshdlrname)
void SCIPgetLinvarMayDecreaseNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **var, SCIP_Real *coef)
void SCIPgetExprEnfoDataNonlinear(SCIP_EXPR *expr, int idx, SCIP_NLHDLR **nlhdlr, SCIP_NLHDLREXPRDATA **nlhdlrexprdata, SCIP_NLHDLR_METHOD *nlhdlrparticipation, SCIP_Bool *sepabelowusesactivity, SCIP_Bool *sepaaboveusesactivity, SCIP_Real *auxvalue)
int SCIPgetExprNLocksPosNonlinear(SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateConsBasicSOCNonlinear(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Real *coefs, SCIP_Real *offsets, SCIP_Real constant, SCIP_VAR *rhsvar, SCIP_Real rhscoeff, SCIP_Real rhsoffset)
SCIP_RETCODE SCIPaddCoefLinear(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_Real val)
SCIP_RETCODE SCIPcreateConsBasicVarbound(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR *var, SCIP_VAR *vbdvar, SCIP_Real vbdcoef, SCIP_Real lhs, SCIP_Real rhs)
SCIP_RETCODE SCIPchgLhsNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_Real lhs)
SCIP_HASHMAP * SCIPgetVarExprHashmapNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPinsertBilinearTermImplicitNonlinear(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_VAR *x, SCIP_VAR *y, SCIP_VAR *auxvar, SCIP_Real coefx, SCIP_Real coefy, SCIP_Real coefaux, SCIP_Real cst, SCIP_Bool overestimate)
void SCIPsetExprEnfoAuxValueNonlinear(SCIP_EXPR *expr, int idx, SCIP_Real auxvalue)
SCIP_RETCODE SCIPcreateConsBounddisjunction(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_BOUNDTYPE *boundtypes, SCIP_Real *bounds, 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 SCIPgetNlRowNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_NLROW **nlrow)
SCIP_RETCODE SCIPchgRhsNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_Real rhs)
SCIP_RETCODE SCIPgetAbsViolationNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Real *viol)
SCIP_RETCODE SCIPgetExprRelAuxViolationNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_Real auxvalue, SCIP_SOL *sol, SCIP_Real *viol, SCIP_Bool *violunder, SCIP_Bool *violover)
SCIP_Longint SCIPgetCurBoundsTagNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_Bool SCIPassumeConvexNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_VAR * SCIPgetExprAuxVarNonlinear(SCIP_EXPR *expr)
int SCIPgetBilinTermIdxNonlinear(SCIP_CONSHDLR *conshdlr, SCIP_VAR *x, SCIP_VAR *y)
void SCIPgetLinvarMayIncreaseNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **var, SCIP_Real *coef)
SCIP_RETCODE SCIPinsertBilinearTermExistingNonlinear(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_VAR *x, SCIP_VAR *y, SCIP_VAR *auxvar, int nlockspos, int nlocksneg)
SCIP_RETCODE SCIPcreateConsBasicLinear(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Real *vals, SCIP_Real lhs, SCIP_Real rhs)
SCIP_RETCODE SCIPaddExprNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_EXPR *expr, SCIP_Real coef)
SCIP_RETCODE SCIPprocessRowprepNonlinear(SCIP *scip, SCIP_NLHDLR *nlhdlr, SCIP_CONS *cons, SCIP_EXPR *expr, SCIP_ROWPREP *rowprep, SCIP_Bool overestimate, SCIP_VAR *auxvar, SCIP_Real auxvalue, SCIP_Bool allowweakcuts, SCIP_Bool branchscoresuccess, SCIP_Bool inenforcement, SCIP_SOL *sol, SCIP_RESULT *result)
SCIP_EXPR * SCIPgetExprNonlinear(SCIP_CONS *cons)
SCIP_RETCODE SCIPgetExprAbsOrigViolationNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_SOL *sol, SCIP_Longint soltag, SCIP_Real *viol, SCIP_Bool *violunder, SCIP_Bool *violover)
SCIP_Real SCIPgetRhsNonlinear(SCIP_CONS *cons)
unsigned int SCIPgetExprNSepaUsesActivityNonlinear(SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateConsNonlinear(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_EXPR *expr, 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_RETCODE SCIPcreateConsBasicNonlinear(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_EXPR *expr, SCIP_Real lhs, SCIP_Real rhs)
SCIP_RETCODE SCIPgetExprActivityNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Real *activity)
int SCIPgetExprNEnfosNonlinear(SCIP_EXPR *expr)
int SCIPgetExprNLocksNegNonlinear(SCIP_EXPR *expr)
SCIP_CONSNONLINEAR_BILINTERM * SCIPgetBilinTermsNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPtightenExprIntervalNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_INTERVAL newbounds, SCIP_Bool *cutoff, int *ntightenings)
SCIP_RETCODE SCIPaddExprsViolScoreNonlinear(SCIP *scip, SCIP_EXPR **exprs, int nexprs, SCIP_Real violscore, SCIP_SOL *sol, SCIP_Bool *success)
int SCIPgetNBilinTermsNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_Real SCIPgetExprPartialDiffNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_VAR *var)
SCIP_Longint SCIPgetLastBoundRelaxTagNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPcollectBilinTermsNonlinear(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_CONS **conss, int nconss)
SCIP_RETCODE SCIPregisterExprUsageNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_Bool useauxvar, SCIP_Bool useactivityforprop, SCIP_Bool useactivityforsepabelow, SCIP_Bool useactivityforsepaabove)
SCIP_RETCODE SCIPcomputeFacetVertexPolyhedralNonlinear(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_Bool overestimate, SCIP_DECL_VERTEXPOLYFUN((*function)), void *fundata, SCIP_Real *xstar, SCIP_Real *box, int nallvars, SCIP_Real targetvalue, SCIP_Bool *success, SCIP_Real *facetcoefs, SCIP_Real *facetconstant)
SCIP_RETCODE SCIPcreateConsBasicQuadraticNonlinear(SCIP *scip, SCIP_CONS **cons, const char *name, int nlinvars, SCIP_VAR **linvars, SCIP_Real *lincoefs, int nquadterms, SCIP_VAR **quadvars1, SCIP_VAR **quadvars2, SCIP_Real *quadcoefs, SCIP_Real lhs, SCIP_Real rhs)
SCIP_CONSNONLINEAR_BILINTERM * SCIPgetBilinTermNonlinear(SCIP_CONSHDLR *conshdlr, SCIP_VAR *x, SCIP_VAR *y)
#define SCIP_DECL_VERTEXPOLYFUN(f)
SCIP_RETCODE SCIPgetRelViolationNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Real *viol)
SCIP_INTERVAL SCIPgetExprBoundsNonlinear(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateConsBasicAnd(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR *resvar, int nvars, SCIP_VAR **vars)
unsigned int SCIPgetExprNPropUsesActivityNonlinear(SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateConsQuadraticNonlinear(SCIP *scip, SCIP_CONS **cons, const char *name, int nlinvars, SCIP_VAR **linvars, SCIP_Real *lincoefs, int nquadterms, SCIP_VAR **quadvars1, SCIP_VAR **quadvars2, SCIP_Real *quadcoefs, 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_RETCODE SCIPchgExprNonlinear(SCIP *scip, SCIP_CONS *cons, SCIP_EXPR *expr)
SCIP_EXPRCURV SCIPgetCurvatureNonlinear(SCIP_CONS *cons)
SCIP_Real SCIPgetLhsNonlinear(SCIP_CONS *cons)
void SCIPaddExprViolScoreNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_Real violscore)
void SCIPincrementCurBoundsTagNonlinear(SCIP_CONSHDLR *conshdlr, SCIP_Bool boundrelax)
SCIP_RETCODE SCIPgetExprAbsAuxViolationNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_Real auxvalue, SCIP_SOL *sol, SCIP_Real *viol, SCIP_Bool *violunder, SCIP_Bool *violover)
SCIP_Real SCIPevalExprQuadraticAuxNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_SOL *sol)
#define SCIP_MAXVERTEXPOLYDIM
SCIP_Real SCIPgetExprPartialDiffGradientDirNonlinear(SCIP *scip, SCIP_EXPR *expr, SCIP_VAR *var)
SCIP_RETCODE SCIPincludeConshdlrNonlinear(SCIP *scip)
SCIP_RETCODE SCIPcreateExprVar(SCIP *scip, SCIP_EXPR **expr, SCIP_VAR *var, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_Bool SCIPisExprVaridx(SCIP *scip, SCIP_EXPR *expr)
SCIP_Bool SCIPisExprAbs(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPappendExprSumExpr(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPR *child, SCIP_Real childcoef)
SCIP_RETCODE SCIPcreateExprSignpower(SCIP *scip, SCIP_EXPR **expr, SCIP_EXPR *child, SCIP_Real exponent, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_Bool SCIPisExprSignpower(SCIP *scip, SCIP_EXPR *expr)
SCIP_Bool SCIPisExprCos(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateExprSum(SCIP *scip, SCIP_EXPR **expr, int nchildren, SCIP_EXPR **children, SCIP_Real *coefficients, SCIP_Real constant, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_RETCODE SCIPcreateExprValue(SCIP *scip, SCIP_EXPR **expr, SCIP_Real value, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_RETCODE SCIPcreateExprPow(SCIP *scip, SCIP_EXPR **expr, SCIP_EXPR *child, SCIP_Real exponent, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_Bool SCIPisPresolveFinished(SCIP *scip)
SCIP_STATUS SCIPgetStatus(SCIP *scip)
SCIP_STAGE SCIPgetStage(SCIP *scip)
int SCIPgetNObjVars(SCIP *scip)
SCIP_RETCODE SCIPaddVar(SCIP *scip, SCIP_VAR *var)
int SCIPgetNIntVars(SCIP *scip)
int SCIPgetNContVars(SCIP *scip)
int SCIPgetNVars(SCIP *scip)
SCIP_RETCODE SCIPaddCons(SCIP *scip, SCIP_CONS *cons)
SCIP_RETCODE SCIPdelCons(SCIP *scip, SCIP_CONS *cons)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
int SCIPgetNBinVars(SCIP *scip)
int SCIPgetNTotalVars(SCIP *scip)
void SCIPhashmapFree(SCIP_HASHMAP **hashmap)
int SCIPhashmapGetImageInt(SCIP_HASHMAP *hashmap, void *origin)
void * SCIPhashmapGetImage(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapInsert(SCIP_HASHMAP *hashmap, void *origin, void *image)
int SCIPhashmapGetNElements(SCIP_HASHMAP *hashmap)
SCIP_RETCODE SCIPhashmapCreate(SCIP_HASHMAP **hashmap, BMS_BLKMEM *blkmem, int mapsize)
SCIP_Bool SCIPhashmapExists(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapInsertInt(SCIP_HASHMAP *hashmap, void *origin, int image)
SCIP_RETCODE SCIPhashmapRemove(SCIP_HASHMAP *hashmap, void *origin)
void SCIPhashsetFree(SCIP_HASHSET **hashset, BMS_BLKMEM *blkmem)
SCIP_Bool SCIPhashsetExists(SCIP_HASHSET *hashset, void *element)
SCIP_Bool SCIPhashsetIsEmpty(SCIP_HASHSET *hashset)
SCIP_RETCODE SCIPhashsetInsert(SCIP_HASHSET *hashset, BMS_BLKMEM *blkmem, void *element)
SCIP_RETCODE SCIPhashsetCreate(SCIP_HASHSET **hashset, BMS_BLKMEM *blkmem, int size)
SCIP_RETCODE SCIPhashsetRemove(SCIP_HASHSET *hashset, void *element)
void SCIPhashtableFree(SCIP_HASHTABLE **hashtable)
#define SCIPhashTwo(a, b)
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 SCIPlpiChgSides(SCIP_LPI *lpi, int nrows, const int *ind, const SCIP_Real *lhs, const SCIP_Real *rhs)
SCIP_Real SCIPlpiInfinity(SCIP_LPI *lpi)
SCIP_RETCODE SCIPlpiChgObjsen(SCIP_LPI *lpi, SCIP_OBJSEN objsen)
SCIP_RETCODE SCIPlpiSetRealpar(SCIP_LPI *lpi, SCIP_LPPARAM type, SCIP_Real dval)
SCIP_RETCODE SCIPlpiFree(SCIP_LPI **lpi)
SCIP_Bool SCIPlpiIsDualFeasible(SCIP_LPI *lpi)
SCIP_RETCODE SCIPlpiSetIntpar(SCIP_LPI *lpi, SCIP_LPPARAM type, int ival)
SCIP_RETCODE SCIPlpiGetSol(SCIP_LPI *lpi, SCIP_Real *objval, SCIP_Real *primsol, SCIP_Real *dualsol, SCIP_Real *activity, SCIP_Real *redcost)
SCIP_RETCODE SCIPlpiSolveDual(SCIP_LPI *lpi)
SCIP_RETCODE SCIPlpiSolvePrimal(SCIP_LPI *lpi)
SCIP_RETCODE SCIPlpiLoadColLP(SCIP_LPI *lpi, SCIP_OBJSEN objsen, int ncols, const SCIP_Real *obj, const SCIP_Real *lb, const SCIP_Real *ub, char **colnames, int nrows, const SCIP_Real *lhs, const SCIP_Real *rhs, char **rownames, int nnonz, const int *beg, const int *ind, const SCIP_Real *val)
SCIP_RETCODE SCIPlpiCreate(SCIP_LPI **lpi, SCIP_MESSAGEHDLR *messagehdlr, const char *name, SCIP_OBJSEN objsen)
SCIP_RETCODE SCIPlpiChgObj(SCIP_LPI *lpi, int ncols, const int *ind, const SCIP_Real *obj)
SCIP_RETCODE SCIPlpiGetNCols(SCIP_LPI *lpi, int *ncols)
SCIP_RETCODE SCIPlpiGetNRows(SCIP_LPI *lpi, int *nrows)
SCIP_RETCODE SCIPdelConsLocal(SCIP *scip, SCIP_CONS *cons)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
#define SCIPdebugMsgPrint
SCIP_MESSAGEHDLR * SCIPgetMessagehdlr(SCIP *scip)
void SCIPdialogMessage(SCIP *scip, FILE *file, const char *formatstr,...)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPhasExprCurvature(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPRCURV curv, SCIP_Bool *success, SCIP_HASHMAP *assumevarfixed)
SCIP_RETCODE SCIPheurPassSolTrySol(SCIP *scip, SCIP_HEUR *heur, SCIP_SOL *sol)
SCIP_RETCODE SCIPupdateStartpointHeurSubNlp(SCIP *scip, SCIP_HEUR *heur, SCIP_SOL *solcand, SCIP_Real violation)
SCIP_RETCODE SCIPaddCharParam(SCIP *scip, const char *name, const char *desc, char *valueptr, SCIP_Bool isadvanced, char defaultvalue, const char *allowedvalues, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPaddIntParam(SCIP *scip, const char *name, const char *desc, int *valueptr, SCIP_Bool isadvanced, int defaultvalue, int minvalue, int maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPaddRealParam(SCIP *scip, const char *name, const char *desc, SCIP_Real *valueptr, SCIP_Bool isadvanced, SCIP_Real defaultvalue, SCIP_Real minvalue, SCIP_Real maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
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 SCIPgetCharParam(SCIP *scip, const char *name, char *value)
void SCIPswapPointers(void **pointer1, void **pointer2)
void SCIPswapReals(SCIP_Real *value1, SCIP_Real *value2)
SCIP_RETCODE SCIPaddExternBranchCand(SCIP *scip, SCIP_VAR *var, SCIP_Real score, SCIP_Real solval)
SCIP_Real SCIPgetBranchingPoint(SCIP *scip, SCIP_VAR *var, SCIP_Real suggestion)
SCIP_RETCODE SCIPbranchVarVal(SCIP *scip, SCIP_VAR *var, SCIP_Real val, SCIP_NODE **downchild, SCIP_NODE **eqchild, SCIP_NODE **upchild)
SCIP_RETCODE SCIPgetLPBranchCands(SCIP *scip, SCIP_VAR ***lpcands, SCIP_Real **lpcandssol, SCIP_Real **lpcandsfrac, int *nlpcands, int *npriolpcands, int *nfracimplvars)
int SCIPgetNLPBranchCands(SCIP *scip)
SCIP_Real SCIPgetBranchScore(SCIP *scip, SCIP_VAR *var, SCIP_Real downgain, SCIP_Real upgain)
SCIP_ROW ** SCIPcolGetRows(SCIP_COL *col)
int SCIPcolGetNLPNonz(SCIP_COL *col)
SCIP_Bool SCIPcolIsInLP(SCIP_COL *col)
void SCIPconshdlrSetData(SCIP_CONSHDLR *conshdlr, SCIP_CONSHDLRDATA *conshdlrdata)
int SCIPconshdlrGetMaxNActiveConss(SCIP_CONSHDLR *conshdlr)
int SCIPconshdlrGetNConss(SCIP_CONSHDLR *conshdlr)
const char * SCIPconshdlrGetName(SCIP_CONSHDLR *conshdlr)
SCIP_CONSHDLR * SCIPfindConshdlr(SCIP *scip, const char *name)
SCIP_CONSHDLRDATA * SCIPconshdlrGetData(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPincludeConshdlr(SCIP *scip, const char *name, const char *desc, int sepapriority, int enfopriority, int chckpriority, int sepafreq, int propfreq, int eagerfreq, int maxprerounds, SCIP_Bool delaysepa, SCIP_Bool delayprop, SCIP_Bool needscons, SCIP_PROPTIMING proptiming, SCIP_PRESOLTIMING presoltiming, SCIP_DECL_CONSHDLRCOPY((*conshdlrcopy)), SCIP_DECL_CONSFREE((*consfree)), SCIP_DECL_CONSINIT((*consinit)), SCIP_DECL_CONSEXIT((*consexit)), SCIP_DECL_CONSINITPRE((*consinitpre)), SCIP_DECL_CONSEXITPRE((*consexitpre)), SCIP_DECL_CONSINITSOL((*consinitsol)), SCIP_DECL_CONSEXITSOL((*consexitsol)), SCIP_DECL_CONSDELETE((*consdelete)), SCIP_DECL_CONSTRANS((*constrans)), SCIP_DECL_CONSINITLP((*consinitlp)), SCIP_DECL_CONSSEPALP((*conssepalp)), SCIP_DECL_CONSSEPASOL((*conssepasol)), SCIP_DECL_CONSENFOLP((*consenfolp)), SCIP_DECL_CONSENFORELAX((*consenforelax)), SCIP_DECL_CONSENFOPS((*consenfops)), SCIP_DECL_CONSCHECK((*conscheck)), SCIP_DECL_CONSPROP((*consprop)), SCIP_DECL_CONSPRESOL((*conspresol)), SCIP_DECL_CONSRESPROP((*consresprop)), SCIP_DECL_CONSLOCK((*conslock)), SCIP_DECL_CONSACTIVE((*consactive)), SCIP_DECL_CONSDEACTIVE((*consdeactive)), SCIP_DECL_CONSENABLE((*consenable)), SCIP_DECL_CONSDISABLE((*consdisable)), SCIP_DECL_CONSDELVARS((*consdelvars)), SCIP_DECL_CONSPRINT((*consprint)), SCIP_DECL_CONSCOPY((*conscopy)), SCIP_DECL_CONSPARSE((*consparse)), SCIP_DECL_CONSGETVARS((*consgetvars)), SCIP_DECL_CONSGETNVARS((*consgetnvars)), SCIP_DECL_CONSGETDIVEBDCHGS((*consgetdivebdchgs)), SCIP_DECL_CONSGETPERMSYMGRAPH((*consgetpermsymgraph)), SCIP_DECL_CONSGETSIGNEDPERMSYMGRAPH((*consgetsignedpermsymgraph)), SCIP_CONSHDLRDATA *conshdlrdata)
SCIP_CONS ** SCIPconshdlrGetConss(SCIP_CONSHDLR *conshdlr)
SCIP_CONSDATA * SCIPconsGetData(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsDynamic(SCIP_CONS *cons)
SCIP_CONSHDLR * SCIPconsGetHdlr(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsPropagationEnabled(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsInitial(SCIP_CONS *cons)
SCIP_RETCODE SCIPprintCons(SCIP *scip, SCIP_CONS *cons, FILE *file)
SCIP_Bool SCIPconsIsOriginal(SCIP_CONS *cons)
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)
SCIP_Bool SCIPconsIsEnabled(SCIP_CONS *cons)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsSeparationEnabled(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsModifiable(SCIP_CONS *cons)
SCIP_RETCODE SCIPreleaseCons(SCIP *scip, SCIP_CONS **cons)
SCIP_Bool SCIPconsIsSeparated(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsRemovable(SCIP_CONS *cons)
SCIP_Real SCIPgetCutEfficacy(SCIP *scip, SCIP_SOL *sol, SCIP_ROW *cut)
SCIP_Bool SCIPisCutEfficacious(SCIP *scip, SCIP_SOL *sol, SCIP_ROW *cut)
SCIP_Bool SCIPisCutApplicable(SCIP *scip, SCIP_ROW *cut)
SCIP_RETCODE SCIPaddRow(SCIP *scip, SCIP_ROW *row, SCIP_Bool forcecut, SCIP_Bool *infeasible)
SCIP_RETCODE SCIPreleaseDialog(SCIP *scip, SCIP_DIALOG **dialog)
SCIP_DIALOG * SCIPdialoghdlrGetRoot(SCIP_DIALOGHDLR *dialoghdlr)
SCIP_Bool SCIPdialogHasEntry(SCIP_DIALOG *dialog, const char *entryname)
SCIP_RETCODE SCIPdialoghdlrAddHistory(SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG *dialog, const char *command, SCIP_Bool escapecommand)
SCIP_RETCODE SCIPincludeDialog(SCIP *scip, SCIP_DIALOG **dialog, SCIP_DECL_DIALOGCOPY((*dialogcopy)), SCIP_DECL_DIALOGEXEC((*dialogexec)), SCIP_DECL_DIALOGDESC((*dialogdesc)), SCIP_DECL_DIALOGFREE((*dialogfree)), const char *name, const char *desc, SCIP_Bool issubmenu, SCIP_DIALOGDATA *dialogdata)
SCIP_RETCODE SCIPaddDialogEntry(SCIP *scip, SCIP_DIALOG *dialog, SCIP_DIALOG *subdialog)
SCIP_DIALOG * SCIPgetRootDialog(SCIP *scip)
int SCIPdialogFindEntry(SCIP_DIALOG *dialog, const char *entryname, SCIP_DIALOG **subdialog)
int SCIPgetPtrarrayMinIdx(SCIP *scip, SCIP_PTRARRAY *ptrarray)
void * SCIPgetPtrarrayVal(SCIP *scip, SCIP_PTRARRAY *ptrarray, int idx)
SCIP_RETCODE SCIPfreePtrarray(SCIP *scip, SCIP_PTRARRAY **ptrarray)
int SCIPgetPtrarrayMaxIdx(SCIP *scip, SCIP_PTRARRAY *ptrarray)
SCIP_RETCODE SCIPcreatePtrarray(SCIP *scip, SCIP_PTRARRAY **ptrarray)
SCIP_RETCODE SCIPincludeEventhdlrBasic(SCIP *scip, SCIP_EVENTHDLR **eventhdlrptr, const char *name, const char *desc, SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
SCIP_EVENTHDLR * SCIPfindEventhdlr(SCIP *scip, const char *name)
SCIP_EVENTTYPE SCIPeventGetType(SCIP_EVENT *event)
SCIP_SOL * SCIPeventGetSol(SCIP_EVENT *event)
SCIP_VARTYPE SCIPeventGetNewtype(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_VAR * SCIPeventGetVar(SCIP_EVENT *event)
SCIP_RETCODE SCIPcatchEvent(SCIP *scip, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
SCIP_RETCODE SCIPdropEvent(SCIP *scip, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int filterpos)
const char * SCIPexprhdlrGetName(SCIP_EXPRHDLR *exprhdlr)
SCIP_Bool SCIPexprhdlrHasGetSymData(SCIP_EXPRHDLR *exprhdlr)
SCIP_Bool SCIPexprhdlrHasMonotonicity(SCIP_EXPRHDLR *exprhdlr)
SCIP_Bool SCIPexprhdlrHasReverseProp(SCIP_EXPRHDLR *exprhdlr)
void SCIPexprSetActivity(SCIP_EXPR *expr, SCIP_INTERVAL activity, SCIP_Longint activitytag)
SCIP_RETCODE SCIPcreateExprQuadratic(SCIP *scip, SCIP_EXPR **expr, int nlinvars, SCIP_VAR **linvars, SCIP_Real *lincoefs, int nquadterms, SCIP_VAR **quadvars1, SCIP_VAR **quadvars2, SCIP_Real *quadcoefs, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_RETCODE SCIPgetSymDataExpr(SCIP *scip, SCIP_EXPR *expr, SYM_EXPRDATA **symdata)
SCIP_RETCODE SCIPevalExpr(SCIP *scip, SCIP_EXPR *expr, SCIP_SOL *sol, SCIP_Longint soltag)
int SCIPexprGetNChildren(SCIP_EXPR *expr)
void SCIPexprGetQuadraticBilinTerm(SCIP_EXPR *expr, int termidx, SCIP_EXPR **expr1, SCIP_EXPR **expr2, SCIP_Real *coef, int *pos2, SCIP_EXPR **prodexpr)
SCIP_RETCODE SCIPcomputeExprIntegrality(SCIP *scip, SCIP_EXPR *expr)
SCIP_Real SCIPgetExponentExprPow(SCIP_EXPR *expr)
SCIP_Bool SCIPisExprProduct(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPevalExprGradient(SCIP *scip, SCIP_EXPR *expr, SCIP_SOL *sol, SCIP_Longint soltag)
SCIP_Bool SCIPexpriterIsEnd(SCIP_EXPRITER *iterator)
SCIP_Longint SCIPgetExprNewSoltag(SCIP *scip)
SCIP_EXPR * SCIPexpriterSkipDFS(SCIP_EXPRITER *iterator)
SCIP_EXPR_OWNERDATA * SCIPexprGetOwnerData(SCIP_EXPR *expr)
SCIP_Real SCIPexprGetDerivative(SCIP_EXPR *expr)
SCIP_Bool SCIPisExprSum(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPgetExprNVars(SCIP *scip, SCIP_EXPR *expr, int *nvars)
SCIP_Longint SCIPexprGetEvalTag(SCIP_EXPR *expr)
SCIP_Bool SCIPexprIsIntegral(SCIP_EXPR *expr)
SCIP_Bool SCIPexprAreQuadraticExprsVariables(SCIP_EXPR *expr)
void SCIPexprGetQuadraticData(SCIP_EXPR *expr, SCIP_Real *constant, int *nlinexprs, SCIP_EXPR ***linexprs, SCIP_Real **lincoefs, int *nquadexprs, int *nbilinexprs, SCIP_Real **eigenvalues, SCIP_Real **eigenvectors)
SCIP_RETCODE SCIPreplaceExprChild(SCIP *scip, SCIP_EXPR *expr, int childidx, SCIP_EXPR *newchild)
SCIP_Real * SCIPgetCoefsExprSum(SCIP_EXPR *expr)
SCIP_EXPRITER_USERDATA SCIPexpriterGetCurrentUserData(SCIP_EXPRITER *iterator)
SCIP_Bool SCIPisExprValue(SCIP *scip, SCIP_EXPR *expr)
SCIP_Real SCIPgetCoefExprProduct(SCIP_EXPR *expr)
void SCIPfreeExprQuadratic(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPreleaseExpr(SCIP *scip, SCIP_EXPR **expr)
SCIP_EXPR * SCIPexpriterGetCurrent(SCIP_EXPRITER *iterator)
void SCIPexpriterSetStagesDFS(SCIP_EXPRITER *iterator, SCIP_EXPRITER_STAGE stopstages)
SCIP_Bool SCIPisExprVar(SCIP *scip, SCIP_EXPR *expr)
SCIP_RETCODE SCIPparseExpr(SCIP *scip, SCIP_EXPR **expr, const char *exprstr, const char **finalpos, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_EXPR * SCIPexpriterRestartDFS(SCIP_EXPRITER *iterator, SCIP_EXPR *expr)
SCIP_RETCODE SCIPcreateExpriter(SCIP *scip, SCIP_EXPRITER **iterator)
void SCIPexprSetIntegrality(SCIP_EXPR *expr, SCIP_Bool isintegral)
SCIP_RETCODE SCIPprintExpr(SCIP *scip, SCIP_EXPR *expr, FILE *file)
SCIP_EXPR * SCIPexpriterGetParentDFS(SCIP_EXPRITER *iterator)
SCIP_Real SCIPgetValueExprValue(SCIP_EXPR *expr)
void SCIPexpriterSetCurrentUserData(SCIP_EXPRITER *iterator, SCIP_EXPRITER_USERDATA userdata)
SCIP_Bool SCIPisExprPower(SCIP *scip, SCIP_EXPR *expr)
SCIP_Real SCIPexprGetEvalValue(SCIP_EXPR *expr)
SCIP_Longint SCIPexprGetActivityTag(SCIP_EXPR *expr)
SCIP_RETCODE SCIPreplaceCommonSubexpressions(SCIP *scip, SCIP_EXPR **exprs, int nexprs, SCIP_Bool *replacedroot)
SCIP_EXPR * SCIPexpriterGetNext(SCIP_EXPRITER *iterator)
SCIP_RETCODE SCIPcheckExprQuadratic(SCIP *scip, SCIP_EXPR *expr, SCIP_Bool *isquadratic)
SCIP_Real SCIPexprGetBardot(SCIP_EXPR *expr)
SCIP_EXPR ** SCIPexprGetChildren(SCIP_EXPR *expr)
SCIP_Real SCIPgetConstantExprSum(SCIP_EXPR *expr)
SCIP_RETCODE SCIPcopyExpr(SCIP *sourcescip, SCIP *targetscip, SCIP_EXPR *expr, SCIP_EXPR **copyexpr, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_Bool global, SCIP_Bool *valid)
SCIP_VAR * SCIPgetVarExprVar(SCIP_EXPR *expr)
void SCIPexpriterSetChildUserData(SCIP_EXPRITER *iterator, SCIP_EXPRITER_USERDATA userdata)
SCIP_INTERVAL SCIPexprGetActivity(SCIP_EXPR *expr)
void SCIPexprGetQuadraticQuadTerm(SCIP_EXPR *quadexpr, int termidx, SCIP_EXPR **expr, SCIP_Real *lincoef, SCIP_Real *sqrcoef, int *nadjbilin, int **adjbilin, SCIP_EXPR **sqrexpr)
int SCIPexpriterGetChildIdxDFS(SCIP_EXPRITER *iterator)
void SCIPfreeExpriter(SCIP_EXPRITER **iterator)
SCIP_EXPRITER_STAGE SCIPexpriterGetStageDFS(SCIP_EXPRITER *iterator)
SCIP_RETCODE SCIPduplicateExpr(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPR **copyexpr, SCIP_DECL_EXPR_MAPEXPR((*mapexpr)), void *mapexprdata, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
void SCIPcaptureExpr(SCIP_EXPR *expr)
SCIP_RETCODE SCIPexpriterInit(SCIP_EXPRITER *iterator, SCIP_EXPR *expr, SCIP_EXPRITER_TYPE type, SCIP_Bool allowrevisit)
int SCIPexprGetNUses(SCIP_EXPR *expr)
SCIP_RETCODE SCIPgetExprVarExprs(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPR **varexprs, int *nvarexprs)
SCIP_Longint SCIPexprGetDiffTag(SCIP_EXPR *expr)
SCIP_RETCODE SCIPsimplifyExpr(SCIP *scip, SCIP_EXPR *rootexpr, SCIP_EXPR **simplified, SCIP_Bool *changed, SCIP_Bool *infeasible, SCIP_DECL_EXPR_OWNERCREATE((*ownercreate)), void *ownercreatedata)
SCIP_RETCODE SCIPevalExprActivity(SCIP *scip, SCIP_EXPR *expr)
SCIP_EXPRHDLR * SCIPexprGetHdlr(SCIP_EXPR *expr)
SCIP_EXPR * SCIPexpriterGetChildExprDFS(SCIP_EXPRITER *iterator)
SCIP_HEUR * SCIPfindHeur(SCIP *scip, const char *name)
const char * SCIPheurGetName(SCIP_HEUR *heur)
void SCIPintervalIntersectEps(SCIP_INTERVAL *resultant, SCIP_Real eps, SCIP_INTERVAL operand1, SCIP_INTERVAL operand2)
SCIP_Bool SCIPintervalIsEntire(SCIP_Real infinity, SCIP_INTERVAL operand)
void SCIPintervalSetEntire(SCIP_Real infinity, SCIP_INTERVAL *resultant)
SCIP_Bool SCIPintervalIsSubsetEQ(SCIP_Real infinity, SCIP_INTERVAL operand1, SCIP_INTERVAL operand2)
SCIP_Bool SCIPintervalIsEmpty(SCIP_Real infinity, SCIP_INTERVAL operand)
void SCIPintervalSetBounds(SCIP_INTERVAL *resultant, SCIP_Real inf, SCIP_Real sup)
void SCIPintervalSetEmpty(SCIP_INTERVAL *resultant)
SCIP_LPSOLSTAT SCIPgetLPSolstat(SCIP *scip)
SCIP_Real SCIPgetLPObjval(SCIP *scip)
void SCIPsetLPFeastol(SCIP *scip, SCIP_Real newfeastol)
SCIP_Real SCIPgetLPFeastol(SCIP *scip)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
#define SCIPallocClearBlockMemory(scip, ptr)
#define SCIPensureBlockMemoryArray(scip, ptr, arraysizeptr, minsize)
BMS_BUFMEM * SCIPbuffer(SCIP *scip)
#define SCIPallocClearBufferArray(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 SCIPfreeBlockMemoryArrayNull(scip, ptr, num)
#define SCIPfreeBufferArrayNull(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
SCIP_RETCODE SCIPdelNlRow(SCIP *scip, SCIP_NLROW *nlrow)
SCIP_RETCODE SCIPaddNlRow(SCIP *scip, SCIP_NLROW *nlrow)
SCIP_Bool SCIPisNLPConstructed(SCIP *scip)
void SCIPenableNLP(SCIP *scip)
SCIP_RETCODE SCIPsetNlRowExpr(SCIP *scip, SCIP_NLROW *nlrow, SCIP_EXPR *expr)
SCIP_RETCODE SCIPaddLinearCoefToNlRow(SCIP *scip, SCIP_NLROW *nlrow, SCIP_VAR *var, SCIP_Real val)
SCIP_RETCODE SCIPreleaseNlRow(SCIP *scip, SCIP_NLROW **nlrow)
SCIP_RETCODE SCIPchgNlRowConstant(SCIP *scip, SCIP_NLROW *nlrow, SCIP_Real constant)
void SCIPsetNlRowCurvature(SCIP *scip, SCIP_NLROW *nlrow, SCIP_EXPRCURV curvature)
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)
const char * SCIPnlhdlrGetDesc(SCIP_NLHDLR *nlhdlr)
SCIP_NLHDLR ** SCIPgetNlhdlrsNonlinear(SCIP_CONSHDLR *conshdlr)
SCIP_Bool SCIPnlhdlrHasIntEval(SCIP_NLHDLR *nlhdlr)
int SCIPnlhdlrGetDetectPriority(SCIP_NLHDLR *nlhdlr)
SCIP_NLHDLREXPRDATA * SCIPgetNlhdlrExprDataNonlinear(SCIP_NLHDLR *nlhdlr, SCIP_EXPR *expr)
SCIP_Bool SCIPnlhdlrIsEnabled(SCIP_NLHDLR *nlhdlr)
int SCIPgetNNlhdlrsNonlinear(SCIP_CONSHDLR *conshdlr)
const char * SCIPnlhdlrGetName(SCIP_NLHDLR *nlhdlr)
SCIP_NLHDLR * SCIPfindNlhdlrNonlinear(SCIP_CONSHDLR *conshdlr, const char *name)
SCIP_Bool SCIPnlhdlrHasEstimate(SCIP_NLHDLR *nlhdlr)
SCIP_RETCODE SCIPincludeNlhdlrNonlinear(SCIP *scip, SCIP_NLHDLR **nlhdlr, const char *name, const char *desc, int detectpriority, int enfopriority, SCIP_DECL_NLHDLRDETECT((*detect)), SCIP_DECL_NLHDLREVALAUX((*evalaux)), SCIP_NLHDLRDATA *nlhdlrdata)
SCIP_Bool SCIPnlhdlrHasInitSepa(SCIP_NLHDLR *nlhdlr)
int SCIPnlhdlrGetEnfoPriority(SCIP_NLHDLR *nlhdlr)
SCIP_Longint SCIPnodeGetNumber(SCIP_NODE *node)
SCIP_Bool SCIPinProbing(SCIP *scip)
SCIP_CONSHDLR * SCIProwGetOriginConshdlr(SCIP_ROW *row)
SCIP_RETCODE SCIPprintRow(SCIP *scip, SCIP_ROW *row, FILE *file)
const char * SCIProwGetName(SCIP_ROW *row)
SCIP_RETCODE SCIPreleaseRow(SCIP *scip, SCIP_ROW **row)
void SCIPmarkRowNotRemovableLocal(SCIP *scip, SCIP_ROW *row)
SCIP_Real SCIProwGetDualsol(SCIP_ROW *row)
SCIP_Real SCIPgetSepaMinEfficacy(SCIP *scip)
SCIP_SOLORIGIN SCIPsolGetOrigin(SCIP_SOL *sol)
SCIP_RETCODE SCIPcreateSolCopy(SCIP *scip, SCIP_SOL **sol, SCIP_SOL *sourcesol)
SCIP_RETCODE SCIPfreeSol(SCIP *scip, SCIP_SOL **sol)
SCIP_HEUR * SCIPsolGetHeur(SCIP_SOL *sol)
SCIP_RETCODE SCIPcreateLPSol(SCIP *scip, SCIP_SOL **sol, SCIP_HEUR *heur)
SCIP_RETCODE SCIPunlinkSol(SCIP *scip, SCIP_SOL *sol)
SCIP_RETCODE SCIPincSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var, SCIP_Real incval)
SCIP_RETCODE SCIPsetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var, SCIP_Real val)
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
SCIP_Real SCIPgetSolTransObj(SCIP *scip, SCIP_SOL *sol)
SCIP_Real SCIPgetUpperbound(SCIP *scip)
SCIP_Real SCIPgetAvgPseudocostCount(SCIP *scip, SCIP_BRANCHDIR dir)
SCIP_TABLE * SCIPfindTable(SCIP *scip, const char *name)
SCIP_RETCODE SCIPincludeTable(SCIP *scip, const char *name, const char *desc, SCIP_Bool active, SCIP_DECL_TABLECOPY((*tablecopy)), SCIP_DECL_TABLEFREE((*tablefree)), SCIP_DECL_TABLEINIT((*tableinit)), SCIP_DECL_TABLEEXIT((*tableexit)), SCIP_DECL_TABLEINITSOL((*tableinitsol)), SCIP_DECL_TABLEEXITSOL((*tableexitsol)), SCIP_DECL_TABLEOUTPUT((*tableoutput)), SCIP_TABLEDATA *tabledata, int position, SCIP_STAGE earlieststage)
SCIP_RETCODE SCIPcreateClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_RETCODE SCIPresetClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPstopClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPfreeClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_Real SCIPgetClockTime(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPstartClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_Bool SCIPisRelEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisUbBetter(SCIP *scip, SCIP_Real newub, SCIP_Real oldlb, SCIP_Real oldub)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisIntegral(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisPositive(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisLbBetter(SCIP *scip, SCIP_Real newlb, SCIP_Real oldlb, SCIP_Real oldub)
SCIP_Real SCIPfeasCeil(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisLE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Real SCIPfloor(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisHugeValue(SCIP *scip, SCIP_Real val)
SCIP_Real SCIPfeasFloor(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisInfinity(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisSumLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Real SCIPround(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisFeasNegative(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisFeasIntegral(SCIP *scip, SCIP_Real val)
SCIP_Real SCIPfeastol(SCIP *scip)
SCIP_Real SCIPgetHugeValue(SCIP *scip)
SCIP_Bool SCIPisNegative(SCIP *scip, SCIP_Real val)
SCIP_Real SCIPceil(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisZero(SCIP *scip, SCIP_Real val)
SCIP_Real SCIPepsilon(SCIP *scip)
SCIP_Bool SCIPisFeasPositive(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPparseReal(SCIP *scip, const char *str, SCIP_Real *value, char **endptr)
int SCIPgetDepth(SCIP *scip)
SCIP_NODE * SCIPgetCurrentNode(SCIP *scip)
SCIP_RETCODE SCIPtightenVarLb(SCIP *scip, SCIP_VAR *var, SCIP_Real newbound, SCIP_Bool force, SCIP_Bool *infeasible, SCIP_Bool *tightened)
SCIP_RETCODE SCIPaddVarLocks(SCIP *scip, SCIP_VAR *var, int nlocksdown, int nlocksup)
SCIP_COL * SCIPvarGetCol(SCIP_VAR *var)
SCIP_Real SCIPgetVarPseudocostCountCurrentRun(SCIP *scip, SCIP_VAR *var, SCIP_BRANCHDIR dir)
SCIP_VARSTATUS SCIPvarGetStatus(SCIP_VAR *var)
int SCIPvarGetNLocksUpType(SCIP_VAR *var, SCIP_LOCKTYPE locktype)
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_Real SCIPvarGetObj(SCIP_VAR *var)
void SCIPvarMarkRelaxationOnly(SCIP_VAR *var)
SCIP_RETCODE SCIPtightenVarUb(SCIP *scip, SCIP_VAR *var, SCIP_Real newbound, SCIP_Bool force, SCIP_Bool *infeasible, SCIP_Bool *tightened)
SCIP_VARTYPE SCIPvarGetType(SCIP_VAR *var)
SCIP_Real SCIPvarGetUbGlobal(SCIP_VAR *var)
int SCIPvarGetIndex(SCIP_VAR *var)
const char * SCIPvarGetName(SCIP_VAR *var)
SCIP_RETCODE SCIPreleaseVar(SCIP *scip, SCIP_VAR **var)
SCIP_Real SCIPadjustedVarUb(SCIP *scip, SCIP_VAR *var, SCIP_Real ub)
SCIP_Real SCIPgetVarPseudocostVal(SCIP *scip, SCIP_VAR *var, SCIP_Real solvaldelta)
SCIP_Real SCIPadjustedVarLb(SCIP *scip, SCIP_VAR *var, SCIP_Real lb)
SCIP_Bool SCIPvarIsIntegral(SCIP_VAR *var)
SCIP_RETCODE SCIPchgVarType(SCIP *scip, SCIP_VAR *var, SCIP_VARTYPE vartype, SCIP_Bool *infeasible)
int SCIPvarGetNCliques(SCIP_VAR *var, SCIP_Bool varfixing)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
SCIP_CLIQUE ** SCIPvarGetCliques(SCIP_VAR *var, SCIP_Bool varfixing)
SCIP_Real SCIPvarGetLbGlobal(SCIP_VAR *var)
SCIP_RETCODE SCIPmarkDoNotMultaggrVar(SCIP *scip, SCIP_VAR *var)
int SCIPvarCompare(SCIP_VAR *var1, SCIP_VAR *var2)
SCIP_RETCODE SCIPcreateVarBasic(SCIP *scip, SCIP_VAR **var, const char *name, SCIP_Real lb, SCIP_Real ub, SCIP_Real obj, SCIP_VARTYPE vartype)
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)
void SCIPqueueFree(SCIP_QUEUE **queue)
SCIP_RETCODE SCIPqueueCreate(SCIP_QUEUE **queue, int initsize, SCIP_Real sizefac)
SCIP_RETCODE SCIPqueueInsert(SCIP_QUEUE *queue, void *elem)
SCIP_Bool SCIPqueueIsEmpty(SCIP_QUEUE *queue)
void * SCIPqueueRemove(SCIP_QUEUE *queue)
void SCIPfreeRandom(SCIP *scip, SCIP_RANDNUMGEN **randnumgen)
SCIP_Real SCIPrandomGetReal(SCIP_RANDNUMGEN *randnumgen, SCIP_Real minrandval, SCIP_Real maxrandval)
int SCIPrandomGetInt(SCIP_RANDNUMGEN *randnumgen, int minrandval, int maxrandval)
SCIP_RETCODE SCIPcreateRandom(SCIP *scip, SCIP_RANDNUMGEN **randnumgen, unsigned int initialseed, SCIP_Bool useglobalseed)
SCIP_VAR ** SCIProwprepGetVars(SCIP_ROWPREP *rowprep)
SCIP_RETCODE SCIPcleanupRowprep2(SCIP *scip, SCIP_ROWPREP *rowprep, SCIP_SOL *sol, SCIP_Real maxcoefbound, SCIP_Bool *success)
int SCIProwprepGetNModifiedVars(SCIP_ROWPREP *rowprep)
SCIP_Real SCIPgetRowprepViolation(SCIP *scip, SCIP_ROWPREP *rowprep, SCIP_SOL *sol, SCIP_Bool *reliable)
SCIP_Real * SCIProwprepGetCoefs(SCIP_ROWPREP *rowprep)
SCIP_VAR ** SCIProwprepGetModifiedVars(SCIP_ROWPREP *rowprep)
char * SCIProwprepGetName(SCIP_ROWPREP *rowprep)
SCIP_SIDETYPE SCIProwprepGetSidetype(SCIP_ROWPREP *rowprep)
SCIP_RETCODE SCIPaddRowprepTerm(SCIP *scip, SCIP_ROWPREP *rowprep, SCIP_VAR *var, SCIP_Real coef)
SCIP_RETCODE SCIPgetRowprepRowCons(SCIP *scip, SCIP_ROW **row, SCIP_ROWPREP *rowprep, SCIP_CONS *cons)
int SCIProwprepGetNVars(SCIP_ROWPREP *rowprep)
void SCIProwprepRecordModifications(SCIP_ROWPREP *rowprep)
SCIP_RETCODE SCIPcleanupRowprep(SCIP *scip, SCIP_ROWPREP *rowprep, SCIP_SOL *sol, SCIP_Real minviol, SCIP_Real *viol, SCIP_Bool *success)
void SCIPfreeRowprep(SCIP *scip, SCIP_ROWPREP **rowprep)
void SCIPprintRowprep(SCIP *scip, SCIP_ROWPREP *rowprep, FILE *file)
SCIP_Bool SCIPsortedvecFindPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), void *val, int len, int *pos)
void SCIPsortDown(int *perm, SCIP_DECL_SORTINDCOMP((*indcomp)), void *dataptr, int len)
void SCIPsortPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), int len)
void SCIPsortDownPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), int len)
void SCIPsortDownIntPtr(int *intarray, void **ptrarray, int len)
void SCIPsort(int *perm, SCIP_DECL_SORTINDCOMP((*indcomp)), void *dataptr, int len)
int SCIPsnprintf(char *t, int len, const char *s,...)
SCIP_RETCODE SCIPskipSpace(char **s)
SCIP_RETCODE SCIPaddSymgraphEdge(SCIP *scip, SYM_GRAPH *graph, int first, int second, SCIP_Bool hasval, SCIP_Real val)
SCIP_RETCODE SCIPaddSymgraphOpnode(SCIP *scip, SYM_GRAPH *graph, int op, int *nodeidx)
SCIP_RETCODE SCIPgetSymActiveVariables(SCIP *scip, SYM_SYMTYPE symtype, SCIP_VAR ***vars, SCIP_Real **scalars, int *nvars, SCIP_Real *constant, SCIP_Bool transformed)
SCIP_RETCODE SCIPaddSymgraphValnode(SCIP *scip, SYM_GRAPH *graph, SCIP_Real val, int *nodeidx)
int SCIPgetSymgraphVarnodeidx(SCIP *scip, SYM_GRAPH *graph, SCIP_VAR *var)
SCIP_RETCODE SCIPaddSymgraphConsnode(SCIP *scip, SYM_GRAPH *graph, SCIP_CONS *cons, SCIP_Real lhs, SCIP_Real rhs, int *nodeidx)
SCIP_RETCODE SCIPaddSymgraphVarAggregation(SCIP *scip, SYM_GRAPH *graph, int rootidx, SCIP_VAR **vars, SCIP_Real *vals, int nvars, SCIP_Real constant)
int SCIPgetSymExprdataNConstants(SYM_EXPRDATA *symdata)
int SCIPgetSymgraphNegatedVarnodeidx(SCIP *scip, SYM_GRAPH *graph, SCIP_VAR *var)
SCIP_RETCODE SCIPfreeSymDataExpr(SCIP *scip, SYM_EXPRDATA **symdata)
int SCIPgetSymgraphNNodes(SYM_GRAPH *graph)
SCIP_Real * SCIPgetSymExprdataConstants(SYM_EXPRDATA *symdata)
SCIP_RETCODE SCIPgetCoefSymData(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPR *parentexpr, SCIP_Real *coef, SCIP_Bool *success)
NLP local search primal heuristic using sub-SCIPs.
primal heuristic that tries a given solution
SCIP_Bool SCIPcliqueHasVar(SCIP_CLIQUE *clique, SCIP_VAR *var, SCIP_Bool value)
static volatile int nterms
SCIP_Bool SCIPlapackIsAvailable(void)
SCIP_RETCODE SCIPlapackSolveLinearEquations(BMS_BUFMEM *bufmem, int n, SCIP_Real *A, SCIP_Real *b, SCIP_Real *x, SCIP_Bool *success)
interface methods for lapack functions
static const char * paramname[]
#define BMSclearMemoryArray(ptr, num)
SCIP_RETCODE SCIPnlhdlrFree(SCIP *scip, SCIP_NLHDLR **nlhdlr)
SCIP_RETCODE SCIPnlhdlrCreate(SCIP *scip, SCIP_NLHDLR **nlhdlr, const char *name, const char *desc, int detectpriority, int enfopriority, SCIP_DECL_NLHDLRDETECT((*detect)), SCIP_DECL_NLHDLREVALAUX((*evalaux)), SCIP_NLHDLRDATA *nlhdlrdata)
void SCIPnlhdlrPrintStatistics(SCIP *scip, SCIP_NLHDLR **nlhdlrs, int nnlhdlrs, FILE *file)
private functions of nonlinear handlers of nonlinear constraints
#define SCIPnlhdlrIncrementNSeparated(nlhdlr)
#define SCIPnlhdlrResetNDetectionslast(nlhdlr)
#define SCIPnlhdlrIncrementNCutoffs(nlhdlr)
nonlinear handlers for convex and concave expressions, respectively
BMS_BLKMEM * SCIPblkmem(SCIP *scip)
SCIP_RETCODE SCIPgetSymOpNodeType(SCIP *scip, const char *opnodename, int *nodetype)
propagator for symmetry handling
#define SCIPdebugPrintCons(x, y, z)
methods for sorting joint arrays of various types
public functions to work with algebraic expressions
SCIP_DECL_NONLINCONSUPGD((*consupgd))
SCIP_NLHDLR_METHOD nlhdlrparticipation
SCIP_Bool sepaaboveusesactivity
SCIP_Bool sepabelowusesactivity
SCIP_NLHDLREXPRDATA * nlhdlrexprdata
SCIP_CONSNONLINEAR_AUXEXPR ** exprs
union SCIP_ConsNonlinear_BilinTerm::@4 aux
int nlockspos[NLOCKTYPES]
structs for symmetry computations
methods for dealing with symmetry detection graphs
#define SCIP_DECL_CONSINITPRE(x)
struct SCIP_ConshdlrData SCIP_CONSHDLRDATA
#define SCIP_DECL_CONSGETDIVEBDCHGS(x)
#define SCIP_DECL_CONSRESPROP(x)
struct SCIP_ConsData SCIP_CONSDATA
#define SCIP_EVENTTYPE_BOUNDCHANGED
#define SCIP_EVENTTYPE_TYPECHANGED
struct SCIP_EventData SCIP_EVENTDATA
#define SCIP_EVENTTYPE_VARFIXED
#define SCIP_EVENTTYPE_BESTSOLFOUND
#define SCIP_EVENTTYPE_FORMAT
#define SCIP_EVENTTYPE_BOUNDRELAXED
#define SCIP_EVENTTYPE_SOLFOUND
#define SCIP_EVENTTYPE_BOUNDTIGHTENED
#define SCIP_EXPRITER_VISITINGCHILD
struct SCIP_Expr_OwnerData SCIP_EXPR_OWNERDATA
@ SCIP_EXPRITER_RTOPOLOGIC
#define SCIP_EXPRITER_LEAVEEXPR
#define SCIP_EXPRITER_ENTEREXPR
@ SCIP_BRANCHDIR_DOWNWARDS
enum SCIP_BoundType SCIP_BOUNDTYPE
@ SCIP_LPSOLSTAT_UNBOUNDEDRAY
#define SCIP_NLHDLR_METHOD_SEPAABOVE
#define SCIP_DECL_NLHDLREVALAUX(x)
struct SCIP_NlhdlrData SCIP_NLHDLRDATA
#define SCIP_NLHDLR_METHOD_SEPABOTH
#define SCIP_NLHDLR_METHOD_ACTIVITY
unsigned int SCIP_NLHDLR_METHOD
#define SCIP_DECL_NLHDLRDETECT(x)
#define SCIP_NLHDLR_METHOD_NONE
struct SCIP_NlhdlrExprData SCIP_NLHDLREXPRDATA
#define SCIP_NLHDLR_METHOD_ALL
#define SCIP_NLHDLR_METHOD_SEPABELOW
enum SCIP_Result SCIP_RESULT
enum SCIP_Retcode SCIP_RETCODE
@ SCIP_STAGE_INITPRESOLVE
@ SCIP_STAGE_EXITPRESOLVE
enum SYM_Symtype SYM_SYMTYPE
#define SCIP_PRESOLTIMING_ALWAYS
#define SCIP_PRESOLTIMING_MEDIUM
unsigned int SCIP_PRESOLTIMING
#define SCIP_PRESOLTIMING_EXHAUSTIVE
@ SCIP_VARTYPE_CONTINUOUS
@ SCIP_VARSTATUS_MULTAGGR
enum SCIP_Vartype SCIP_VARTYPE
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4