assert( vars !=
NULL);
89assert( nGen !=
NULL);
90assert( cutoff !=
NULL);
93 for(i = 0; i < n && ! (*cutoff); ++i)
95 for(j = i+1; j < n && ! (*cutoff); ++j)
125 for(k = i+1; k < n; ++k)
170assert( conshdlr !=
NULL);
172assert( valid !=
NULL);
190assert( conshdlr !=
NULL);
192assert( cons !=
NULL);
193assert( consdata !=
NULL);
194assert( *consdata !=
NULL);
195assert( (*consdata)->vars !=
NULL);
200 for(i = 0; i < n; ++i)
222assert( conshdlr !=
NULL);
237 for(c = 0; c < nconss; ++c)
244assert( conss !=
NULL);
245assert( conss[c] !=
NULL);
249assert( consdata !=
NULL);
250assert( consdata->vars !=
NULL);
252vars = consdata->vars;
258 for(i = 0; i < n; ++i)
261 for(j = 0; j < n; ++j)
282 for(i = 0; i < n; ++i)
305assert( conshdlr !=
NULL);
307assert( sourcecons !=
NULL);
308assert( targetcons !=
NULL);
314assert( sourcedata !=
NULL);
324 for(i = 0; i < n; ++i)
327 for(j = 0; j < n; ++j)
331assert( sourcedata->vars[i][j] !=
NULL);
359assert( conshdlr !=
NULL);
361assert( infeasible !=
NULL);
363*infeasible =
FALSE;
366 for(c = 0; c < nconss; ++c)
374assert( conss !=
NULL);
375assert( conss[c] !=
NULL);
379assert( consdata !=
NULL);
380assert( consdata->vars !=
NULL);
382vars = consdata->vars;
385 for(i = 0; i < n; ++i)
387 for(j = i+1; j < n; ++j)
423assert( conshdlr !=
NULL);
425assert( conss !=
NULL);
426assert( result !=
NULL);
431 for(c = 0; c < nconss; ++c)
438assert( cons !=
NULL);
442assert( consdata !=
NULL);
467assert( conshdlr !=
NULL);
469assert( conss !=
NULL);
470assert( result !=
NULL);
475 for(c = 0; c < nconss; ++c)
482assert( cons !=
NULL);
486assert( consdata !=
NULL);
511assert( conshdlr !=
NULL);
513assert( conss !=
NULL);
514assert( result !=
NULL);
519 for(c = 0; c < nconss; ++c)
530assert( cons !=
NULL);
534assert( consdata !=
NULL);
537vars = consdata->vars;
538assert( vars !=
NULL);
540 for(i = 0; i < n; ++i)
542 for(j = i + 1; j < n; ++j)
576 for(k = i + 1; k < n; ++k)
636assert( conshdlr !=
NULL);
638assert( conss !=
NULL);
639assert( result !=
NULL);
642 for(c = 0; c < nconss; ++c)
653assert( cons !=
NULL);
657assert( consdata !=
NULL);
658assert( consdata->vars !=
NULL);
659vars = consdata->vars;
663 for(i = 0; i < n; ++i)
665 for(j = i + 1; j < n; ++j)
677 if( oneIJ == oneJI )
684 for(k = i + 1; k < n; ++k)
699 if( oneIJ && oneJK && oneKI )
722assert( conshdlr !=
NULL);
724assert( conss !=
NULL);
725assert( result !=
NULL);
728 for(c = 0; c < nconss; ++c)
739assert( cons !=
NULL);
743assert( consdata !=
NULL);
744assert( consdata->vars !=
NULL);
745vars = consdata->vars;
749 for(i = 0; i < n; ++i)
751 for(j = i + 1; j < n; ++j)
764 if( oneIJ == oneJI )
778 for(k = i + 1; k < n; ++k)
793 if( oneIJ && oneJK && oneKI )
801 "violation: triangle inequality violated <%s> = %.15g, <%s> = %.15g, <%s> = %.15g\n",
826assert( conshdlr !=
NULL);
828assert( conss !=
NULL);
829assert( result !=
NULL);
834 for(c = 0; c < nconss; ++c)
845assert( cons !=
NULL);
851assert( consdata !=
NULL);
852assert( consdata->vars !=
NULL);
854vars = consdata->vars;
858 for(i = 0; i < n; ++i)
860 for(j = i + 1; j < n; ++j)
901 for(k = i + 1; k < n; ++k)
946assert( conshdlr !=
NULL);
948assert( cons !=
NULL);
949assert( infervar !=
NULL);
950assert( bdchgidx !=
NULL);
951assert( result !=
NULL);
957assert( consdata !=
NULL);
958assert( consdata->vars !=
NULL);
961vars = consdata->vars;
963assert( 0 <= inferinfo && inferinfo < n*n + n*n*n );
966 if( inferinfo < (n*n) )
971index1 = inferinfo/n;
972index2 = inferinfo % n;
973assert( 0 <= index1 && index1 < n );
974assert( 0 <= index2 && index2 < n );
975assert( vars[index2][index1] == infervar );
980 SCIPdebugMsg(
scip,
" -> reason for x[%d][%d] == 0 was x[%d][%d] = 1.\n", index2, index1, index1, index2);
990 SCIPdebugMsg(
scip,
" -> reason for x[%d][%d] == 1 was x[%d][%d] = 0.\n", index2, index1, index1, index2);
1004index1 = (inferinfo - n*n)/(n*n);
1005index2 = (inferinfo - n*n - index1 * n*n)/n;
1006index3 = (inferinfo - n*n) % n;
1008assert( 0 <= index1 && index1 < n );
1009assert( 0 <= index2 && index2 < n );
1010assert( 0 <= index3 && index3 < n );
1011assert( index1 != index2 && index2 != index3 && index1 != index3 );
1012assert( vars[index3][index1] == infervar );
1018 SCIPdebugMsg(
scip,
" -> reason for x[%d][%d] == 0 was x[%d][%d] = x[%d][%d] = 1.\n", index3, index1, index1, index2, index2, index3);
1038assert( conshdlr !=
NULL);
1040assert( cons !=
NULL);
1046assert( consdata !=
NULL);
1047assert( consdata->vars !=
NULL);
1049vars = consdata->vars;
1051 for(i = 0; i < n; ++i)
1053 for(j = 0; j < n; ++j)
1077assert( conshdlr !=
NULL);
1079assert( cons !=
NULL);
1082assert( consdata !=
NULL);
1083assert( consdata->vars !=
NULL);
1085vars = consdata->vars;
1088 for(i = 0; i < n; ++i)
1093 for(j = 0; j < n; ++j)
1097 if( j > 0 && (i > 0 || j > 1) )
1121assert( sourceconshdlr !=
NULL);
1123assert( cons !=
NULL);
1124assert( sourcescip !=
NULL);
1125assert( sourcecons !=
NULL);
1126assert( varmap !=
NULL);
1127assert( valid !=
NULL);
1131 SCIPdebugMsg(
scip,
"Copying method for linear ordering constraint handler.\n");
1134assert( sourcedata !=
NULL);
1137sourcevars = sourcedata->vars;
1138assert( sourcevars !=
NULL);
1143 for(i = 0; i < n; ++i)
1147 for(j = 0; j < n && *valid; ++j)
1152assert( !(*valid) || vars[i][j] !=
NULL);
1164initial, separate, enforce, check, propagate, local, modifiable, dynamic, removable, stickingatnode) );
1168 for(i = n-1; i >= 0; --i)
1185consEnfolpLOP, consEnfopsLOP, consCheckLOP, consLockLOP,
NULL) );
1186assert( conshdlr !=
NULL);
1230 if(conshdlr ==
NULL)
1241 for(i = 0; i < n; ++i)
1244 for(j = 0; j < n; ++j)
1248assert( vars[i][j] !=
NULL);
1249consdata->vars[i][j] = vars[i][j];
1255 SCIP_CALL(
SCIPcreateCons(
scip, cons, name, conshdlr, consdata, initial, separate, enforce, check, propagate,
1256local, modifiable, dynamic, removable, stickingatnode) );
static SCIP_DECL_CONSRESPROP(consRespropLOP)
SCIP_RETCODE SCIPincludeConshdlrLOP(SCIP *scip)
#define CONSHDLR_NEEDSCONS
#define CONSHDLR_SEPAFREQ
#define CONSHDLR_CHECKPRIORITY
static SCIP_DECL_CONSENFOPS(consEnfopsLOP)
#define CONSHDLR_PROP_TIMING
static SCIP_DECL_CONSENFOLP(consEnfolpLOP)
static SCIP_DECL_CONSEXIT(consExitLOP)
static SCIP_DECL_CONSINITLP(consInitlpLOP)
static SCIP_RETCODE LOPseparate(SCIP *scip, SCIP_CONSHDLR *conshdlr, int n, SCIP_VAR ***vars, SCIP_SOL *sol, int *nGen, SCIP_Bool *cutoff)
SCIP_RETCODE SCIPcreateConsLOP(SCIP *scip, SCIP_CONS **cons, const char *name, int n, SCIP_VAR ***vars, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
#define CONSHDLR_SEPAPRIORITY
static SCIP_DECL_CONSPROP(consPropLOP)
static SCIP_DECL_CONSTRANS(consTransLOP)
static SCIP_DECL_CONSCOPY(consCopyLOP)
static SCIP_DECL_CONSHDLRCOPY(conshdlrCopyLOP)
#define CONSHDLR_PROPFREQ
static SCIP_DECL_CONSSEPALP(consSepalpLOP)
#define CONSHDLR_EAGERFREQ
static SCIP_DECL_CONSPRINT(consPrintLOP)
#define CONSHDLR_ENFOPRIORITY
#define CONSHDLR_DELAYSEPA
static SCIP_DECL_CONSSEPASOL(consSepasolLOP)
#define CONSHDLR_DELAYPROP
static SCIP_DECL_CONSCHECK(consCheckLOP)
static SCIP_DECL_CONSLOCK(consLockLOP)
static SCIP_DECL_CONSDELETE(consDeleteLOP)
constraint handler for linear ordering constraints
int SCIPgetSubscipDepth(SCIP *scip)
SCIP_RETCODE SCIPgetVarCopy(SCIP *sourcescip, SCIP *targetscip, SCIP_VAR *sourcevar, SCIP_VAR **targetvar, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_Bool global, SCIP_Bool *success)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
SCIP_RETCODE SCIPaddConflictLb(SCIP *scip, SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx)
SCIP_RETCODE SCIPinitConflictAnalysis(SCIP *scip, SCIP_CONFTYPE conftype, SCIP_Bool iscutoffinvolved)
SCIP_RETCODE SCIPaddConflictUb(SCIP *scip, SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx)
SCIP_RETCODE SCIPaddConflictBinvar(SCIP *scip, SCIP_VAR *var)
SCIP_RETCODE SCIPanalyzeConflictCons(SCIP *scip, SCIP_CONS *cons, SCIP_Bool *success)
SCIP_RETCODE SCIPsetConshdlrSepa(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSSEPALP((*conssepalp)), SCIP_DECL_CONSSEPASOL((*conssepasol)), int sepafreq, int sepapriority, SCIP_Bool delaysepa)
SCIP_RETCODE SCIPsetConshdlrProp(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSPROP((*consprop)), int propfreq, SCIP_Bool delayprop, SCIP_PROPTIMING proptiming)
SCIP_RETCODE SCIPincludeConshdlrBasic(SCIP *scip, SCIP_CONSHDLR **conshdlrptr, const char *name, const char *desc, int enfopriority, int chckpriority, int eagerfreq, SCIP_Bool needscons, SCIP_DECL_CONSENFOLP((*consenfolp)), SCIP_DECL_CONSENFOPS((*consenfops)), SCIP_DECL_CONSCHECK((*conscheck)), SCIP_DECL_CONSLOCK((*conslock)), SCIP_CONSHDLRDATA *conshdlrdata)
SCIP_RETCODE SCIPsetConshdlrDelete(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSDELETE((*consdelete)))
const char * SCIPconshdlrGetName(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPsetConshdlrExit(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSEXIT((*consexit)))
SCIP_RETCODE SCIPsetConshdlrCopy(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSHDLRCOPY((*conshdlrcopy)), SCIP_DECL_CONSCOPY((*conscopy)))
SCIP_CONSHDLR * SCIPfindConshdlr(SCIP *scip, const char *name)
SCIP_RETCODE SCIPsetConshdlrInitlp(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSINITLP((*consinitlp)))
SCIP_RETCODE SCIPsetConshdlrTrans(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSTRANS((*constrans)))
SCIP_RETCODE SCIPsetConshdlrResprop(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSRESPROP((*consresprop)))
SCIP_RETCODE SCIPsetConshdlrPrint(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSPRINT((*consprint)))
SCIP_CONSDATA * SCIPconsGetData(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsDynamic(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsInitial(SCIP_CONS *cons)
SCIP_RETCODE SCIPprintCons(SCIP *scip, SCIP_CONS *cons, FILE *file)
SCIP_Bool SCIPconsIsChecked(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsEnforced(SCIP_CONS *cons)
SCIP_RETCODE SCIPcreateCons(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_CONSHDLR *conshdlr, SCIP_CONSDATA *consdata, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_Bool SCIPconsIsPropagated(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsLocal(SCIP_CONS *cons)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsModifiable(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsStickingAtNode(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsSeparated(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsRemovable(SCIP_CONS *cons)
SCIP_Bool SCIPisEfficacious(SCIP *scip, SCIP_Real efficacy)
SCIP_RETCODE SCIPaddRow(SCIP *scip, SCIP_ROW *row, SCIP_Bool forcecut, SCIP_Bool *infeasible)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPfreeBufferArray(scip, ptr)
#define SCIPallocBlockMemoryArray(scip, ptr, num)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPfreeBufferArrayNull(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
SCIP_RETCODE SCIPcacheRowExtensions(SCIP *scip, SCIP_ROW *row)
SCIP_RETCODE SCIPflushRowExtensions(SCIP *scip, SCIP_ROW *row)
SCIP_RETCODE SCIPcreateEmptyRowConshdlr(SCIP *scip, SCIP_ROW **row, SCIP_CONSHDLR *conshdlr, const char *name, SCIP_Real lhs, SCIP_Real rhs, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool removable)
SCIP_RETCODE SCIPaddVarToRow(SCIP *scip, SCIP_ROW *row, SCIP_VAR *var, SCIP_Real val)
SCIP_RETCODE SCIPprintRow(SCIP *scip, SCIP_ROW *row, FILE *file)
SCIP_RETCODE SCIPreleaseRow(SCIP *scip, SCIP_ROW **row)
SCIP_SOL * SCIPgetBestSol(SCIP *scip)
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisFeasEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasIntegral(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_RETCODE SCIPaddVarLocksType(SCIP *scip, SCIP_VAR *var, SCIP_LOCKTYPE locktype, int nlocksdown, int nlocksup)
const char * SCIPvarGetName(SCIP_VAR *var)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
SCIP_Real SCIPvarGetLbAtIndex(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
SCIP_RETCODE SCIPinferBinvarCons(SCIP *scip, SCIP_VAR *var, SCIP_Bool fixedval, SCIP_CONS *infercons, int inferinfo, SCIP_Bool *infeasible, SCIP_Bool *tightened)
SCIP_RETCODE SCIPgetTransformedVar(SCIP *scip, SCIP_VAR *var, SCIP_VAR **transvar)
SCIP_Real SCIPvarGetUbAtIndex(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
void SCIPsortIntInt(int *intarray1, int *intarray2, int len)
int SCIPsnprintf(char *t, int len, const char *s,...)
#define BMSclearMemoryArray(ptr, num)
@ SCIP_CONFTYPE_PROPAGATION
struct SCIP_ConsData SCIP_CONSDATA
enum SCIP_Retcode SCIP_RETCODE
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