penaltyiterations;
212assert(problem !=
NULL);
213assert(problem->scip !=
NULL);
215block = &problem->blocks[problem->nblocks];
221block->
number= problem->nblocks;
239assert(block !=
NULL);
267assert(problem !=
NULL);
270assert(*problem !=
NULL);
280(*problem)->scip =
scip;
281(*problem)->nblocks = 0;
296assert(problem !=
NULL);
297assert(*problem !=
NULL);
299 scip= (*problem)->scip;
303 for( c = nblocks - 1; c >= 0; --c )
307 if( (*problem)->blocks !=
NULL)
388assert(subscip !=
NULL);
389assert(conss !=
NULL);
390assert(consmap !=
NULL);
391assert(success !=
NULL);
400 for( i = 0; i < nconss; ++i )
402assert(conss[i] !=
NULL);
421 if( !(*success) || newcons ==
NULL)
450assert(block !=
NULL);
451assert(varmap !=
NULL);
452assert(consmap !=
NULL);
453assert(conss !=
NULL);
454assert(success !=
NULL);
457assert(problem !=
NULL);
459 scip= problem->scip;
485 for( i = 0; i < nsubscipvars; i++ )
486block->
subvars[i] = subscipvars[i];
528assert((*problem)->blocks !=
NULL);
533 for(
b= 0;
b< nblocks;
b++ )
540 for(
b= 0;
b< nblocks;
b++ )
542block = &(*problem)->blocks[
b];
547blockconss = &(sortedconss[nhandledconss]);
548nblockconss = consssize[
b+ 1];
554nhandledconss += nblockconss;
586assert(vars !=
NULL);
587assert(sortedconss !=
NULL);
588assert(varlabels !=
NULL);
589assert(conslabels !=
NULL);
595 SCIPdebugMsg(
scip,
"try to assign %d linking constraints\n", nlinkconss);
630assert(subscip !=
NULL);
631assert(block !=
NULL);
642sol = sols[nsols - 1];
655 for( c = 0; c < block->
ncoupling; c++ )
667diff = side - solval;
693 SCIPdebugMsg(subscip,
"Correcting solution failed\n");
696 SCIPdebugMsg(subscip,
"Correcting solution successful\n");
734assert(heur !=
NULL);
735assert(sol !=
NULL);
736assert(vars !=
NULL);
737assert(linkvars !=
NULL);
762 for( v = 0; v < nvars; v++ )
803 for( v = 0; v < nvars; v++ )
807 if( subvar !=
NULL)
817 SCIPdebugMsg(
scip,
"start solution for reoptimizing is not feasible\n");
877 SET* linkvartoblocks,
878 SET* blocktolinkvars,
892shift = maxpenalty / 2.0;
895offset = range / 2.0 + lowestslack;
896flatness = maxpenalty / 10.0;
898 for(
b= 0;
b< problem->nblocks;
b++ )
900 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
903linkvaridx = blocktolinkvars[
b].
indexes[i];
905 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
908b2 = linkvartoblocks[linkvaridx].
indexes[k];
920assert(binfoout !=
NULL);
924binfoout->
slackposobjcoeff= ((oldcoeff - shift) / (flatness +
REALABS(oldcoeff - shift))) * range / 2.0 + offset;
928binfoout->
slacknegobjcoeff= ((oldcoeff - shift) / (flatness +
REALABS(oldcoeff - shift))) * range / 2.0 + offset;
952*time =
MAX(0.0, (timelim - solvingtime));
968assert(heur !=
NULL);
987assert(heurdata !=
NULL);
1010 SET* linkvartoblocks;
1011 SET* blocktolinkvars;
1017 int* alllinkvartoblocks;
1042 intincreasedslacks;
1043 intblockinfolistfill;
1051assert(heur !=
NULL);
1052assert(result !=
NULL);
1055assert(heurdata !=
NULL);
1060assigneddecomp =
NULL;
1061sortedconss =
NULL;
1065alllinkvartoblocks =
NULL;
1067linkvartoblocks =
NULL;
1068blocktolinkvars =
NULL;
1069tmpcouplingvars =
NULL;
1070tmpcouplingcoef =
NULL;
1072blockinfolist =
NULL;
1075nodesleft = heurdata->maxnodes;
1076gap = heurdata->gap;
1091#ifdef PADM_WRITE_PROBLEMS 1097 if( heurdata->original )
1102 SCIPwarningMessage(
scip,
"Heuristic %s does not support multiaggregation when the original problem is used.\nPlease turn multiaggregation off to use this feature.\n",
HEUR_NAME);
1111decomp = alldecomps[0];
1113assert(decomp !=
NULL);
1128decomp = alldecomps[0];
1130assert(decomp !=
NULL);
1141 if( nconss == 0 || nvars == 0 || nblocks <= 1 )
1143 SCIPdebugMsg(
scip,
"problem has no constraints, no variables or less than two blocks\n");
1152 SCIPdebugMsg(
scip,
"The estimated memory usage for %d blocks is too large.\n", nblocks);
1189decomp = assigneddecomp;
1220 if( numlinkvars == 0 )
1236 SCIPdebugMsg(
scip,
"Some subscips could not be created successfully.\n");
1244 for( i = 0; i < numlinkvars; i++ )
1245linkvartoblocks[i].indexes =
NULL;
1246 for( i = 0; i < problem->nblocks; i++ )
1247blocktolinkvars[i].indexes =
NULL;
1254 for( i = 0; i < nvars; i++ )
1258linkvars[
b] = vars[i];
1259linkvartoblocks[
b].
indexes= &alllinkvartoblocks[
b* problem->nblocks];
1260linkvartoblocks[
b].
size= 0;
1266 for( i = 0; i < numlinkvars; i++ )
1271assert(linkvartoblocks[i].indexes !=
NULL);
1275 for(
b= 0;
b< problem->nblocks;
b++ )
1277var =
SCIPfindVar((problem->blocks[
b]).subscip, vname);
1280linkvartoblocks[i].
indexes[k] =
b;
1281linkvartoblocks[i].
size= k + 1;
1289 if( timeleft <= 0 )
1297 for( i = 0; i < numlinkvars; ++i)
1298varonlyobj[i] =
TRUE;
1301 for(
b= 0;
b< problem->nblocks;
b++ )
1304blocktolinkvars[
b].
size= 0;
1307 for( i = 0; i < numlinkvars; i++ )
1313var =
SCIPfindVar((problem->blocks[
b]).subscip, vname);
1316varonlyobj[i] =
FALSE;
1317blocktolinkvars[
b].
indexes[k] = i;
1318blocktolinkvars[
b].
size= k + 1;
1325 for(
b= 0;
b< problem->nblocks;
b++ )
1334tmpcouplingcoef[0] = 1.0;
1335tmpcouplingcoef[1] = 1.0;
1336tmpcouplingcoef[2] = -1.0;
1340 for(
b= 0;
b< problem->nblocks;
b++ )
1342 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
1344 intlinkvaridx = blocktolinkvars[
b].
indexes[i];
1345 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
1347 if( linkvartoblocks[linkvaridx].indexes[k] !=
b)
1355blockinfolistfill = 0;
1359 for(
b= 0;
b< problem->nblocks;
b++ )
1364blockvars =
SCIPgetVars((problem->blocks[
b]).subscip);
1368 for( i = 0; i < nblockvars; i++ )
1374 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
1377linkvaridx = blocktolinkvars[
b].
indexes[i];
1379 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
1382b2 = linkvartoblocks[linkvaridx].
indexes[k];
1388binfo = &blockinfolist[blockinfolistfill];
1389blockinfolistfill++;
1394j = (problem->blocks[
b]).ncoupling;
1398(problem->blocks[
b]).slackspos[j] =
NULL;
1400&((problem->blocks[
b]).slackspos[j]), name,
1403assert((problem->blocks[
b]).slackspos[j] !=
NULL);
1405binfo->
slackposvar= (problem->blocks[
b]).slackspos[j];
1409(problem->blocks[
b]).slacksneg[j] =
NULL;
1411&((problem->blocks[
b]).slacksneg[j]), name,
1414assert((problem->blocks[
b]).slacksneg[j] !=
NULL);
1416binfo->
slacknegvar= (problem->blocks[
b]).slacksneg[j];
1419tmpcouplingvars[0] = binfo->
linkvar;
1426(problem->blocks[
b]).couplingcons[j] =
NULL;
1435initval =
MAX(lb, 0.0);
1438name,
COUPLINGSIZE, tmpcouplingvars, tmpcouplingcoef, initval, initval) );
1454name,
COUPLINGSIZE, tmpcouplingvars, tmpcouplingcoef, initval, initval) );
1461assert((problem->blocks[
b]).couplingcons[j] !=
NULL);
1462binfo->
couplingCons= (problem->blocks[
b]).couplingcons[j];
1464(problem->blocks[
b]).ncoupling++;
1474#ifdef PADM_WRITE_PROBLEMS 1476 for(
b= 0;
b< problem->nblocks;
b++ )
1485 for( i = 0; i < nvars; i++ )
1490 if( obj > slackthreshold )
1491slackthreshold = obj;
1498 if( timeleft <= 0 )
1508increasedslacks = 0;
1514 while( !solved && piter < heurdata->penaltyiterations && istimeleft )
1517solutionsdiffer =
TRUE;
1521 while( solutionsdiffer && aiter < heurdata->admiterations && istimeleft )
1524solutionsdiffer =
FALSE;
1525 SCIPdebugMsg(
scip,
"%d\t%d\t%d\t%s\n", piter, aiter, increasedslacks, info);
1528 for(
b= 0;
b< problem->nblocks;
b++ )
1530 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
1533linkvaridx = blocktolinkvars[
b].
indexes[i];
1535 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
1538b2 = linkvartoblocks[linkvaridx].
indexes[k];
1555assert(binfoout !=
NULL);
1563assert(binfo2out !=
NULL);
1583#ifdef PADM_WRITE_PROBLEMS 1584 SCIPdebugMsg(
scip,
"write subscip of block %d in piter=%d and aiter=%d\n",
b, piter, aiter);
1598 if( nodesleft < heurdata->minnodes )
1607iteration = ((piter - 1) * heurdata->admiterations) + aiter;
1634 SCIPdebugMsg(
scip,
"Block is optimal or reached gaplimit or nodelimit.\n");
1638 SCIPdebugMsg(
scip,
"Block reached time limit with at least one feasible solution.\n");
1639istimeleft =
FALSE;
1642 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
1645linkvaridx = blocktolinkvars[
b].
indexes[i];
1647 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
1650b2 = linkvartoblocks[linkvaridx].
indexes[k];
1664assert(binfoout !=
NULL);
1667assert(sol !=
NULL);
1672solutionsdiffer =
TRUE;
1682 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
1685linkvaridx = blocktolinkvars[
b].
indexes[i];
1687 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
1690b2 = linkvartoblocks[linkvaridx].
indexes[k];
1701assert(binfoout !=
NULL);
1714 SCIPdebugMsg(
scip,
"Block reached time limit. No optimal solution available.\n");
1736increasedslacks = 0;
1738 for(
b= 0;
b< problem->nblocks;
b++ )
1740 for( i = 0; i < blocktolinkvars[
b].
size; i++ )
1743linkvaridx = blocktolinkvars[
b].
indexes[i];
1745 for( k = 0; k < linkvartoblocks[linkvaridx].
size; k++ )
1748b2 = linkvartoblocks[linkvaridx].
indexes[k];
1762assert(binfoout !=
NULL);
1803 if( doscaling && heurdata->scaling )
1808increasedslacks = 0;
1815 if( (aiter == 1 && solutionsdiffer ==
FALSE) || (doscaling && heurdata->scaling) )
1820 if( newgap >= mingap )
1822 if( doscaling && heurdata->scaling )
1833 for(
b= 0;
b< problem->nblocks;
b++ )
1845assert(increasedslacks == 0);
1850 for(
b= 0;
b< problem->nblocks;
b++ )
1858assert(blocksol !=
NULL);
1859blockvars = (problem->blocks[
b]).subvars;
1860nblockvars = (problem->blocks[
b]).nsubvars;
1863 for( i = 0; i < nblockvars; i++ )
1869solval = blocksolvals[i];
1875 for( i = 0; i < numlinkvars; i++ )
1877 if( varonlyobj[i] )
1899 if( heurdata->reoptimize )
1903assert(improvedsol !=
NULL|| success ==
FALSE);
1949 if( problem !=
NULL)
1951 for(
b= 0;
b< problem->nblocks;
b++ )
1953 BLOCKcurr_block = problem->blocks[
b];
1954 for( i = 0; i < (problem->blocks[
b]).ncoupling; i++ )
1963 if( htable !=
NULL)
1966 if( blockinfolist !=
NULL)
1969 if( tmpcouplingcoef !=
NULL)
1972 if( tmpcouplingvars !=
NULL)
1975 if( problem !=
NULL)
1977 for(
b= problem->nblocks - 1;
b>= 0;
b-- )
1979 if( problem->blocks[
b].couplingcons !=
NULL)
1988 if( varonlyobj !=
NULL)
1991 if( problem !=
NULL&& blocktolinkvars !=
NULL)
1993 for(
b= problem->nblocks -1;
b>= 0;
b-- )
1995 if( blocktolinkvars[
b].indexes !=
NULL)
2000 if( linkvars !=
NULL)
2003 if( alllinkvartoblocks !=
NULL)
2006 if( blocktolinkvars !=
NULL)
2009 if( linkvartoblocks !=
NULL)
2012 if( assigneddecomp !=
NULL)
2015 if( consssize !=
NULL)
2018 if( conslabels !=
NULL)
2021 if( varlabels !=
NULL)
2024 if( sortedconss !=
NULL)
2027 if( problem !=
NULL)
2060assert(heur !=
NULL);
2068 "maximum number of nodes to regard in all subproblems",
2072 "minimum number of nodes to regard in one subproblem",
2079 "maximal number of ADM iterations in each penalty loop", &heurdata->admiterations,
TRUE,
DEFAULT_ADMIT, 1, 100,
NULL,
NULL) );
2088 "should the problem get reoptimized with the original objective function?", &heurdata->reoptimize,
FALSE,
TRUE,
NULL,
NULL) );
2091 "enable sigmoid rescaling of penalty parameters", &heurdata->scaling,
TRUE,
TRUE,
NULL,
NULL) );
2094 "should linking constraints be assigned?", &heurdata->assignlinking,
FALSE,
TRUE,
NULL,
NULL) );
2097 "should the original problem be used? This is only for testing and not recommended!", &heurdata->original,
TRUE,
FALSE,
NULL,
NULL) );
2100 "should the heuristic run before or after the processing of the node? (0: before, 1: after, 2: both)",
Constraint handler for linear constraints in their most general form, .
#define SCIP_DEFAULT_EPSILON
#define SCIP_CALL_ABORT(x)
SCIP_Real SCIPgetRhsLinear(SCIP *scip, SCIP_CONS *cons)
SCIP_RETCODE SCIPchgRhsLinear(SCIP *scip, SCIP_CONS *cons, SCIP_Real rhs)
SCIP_Real SCIPgetLhsLinear(SCIP *scip, SCIP_CONS *cons)
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 SCIPchgLhsLinear(SCIP *scip, SCIP_CONS *cons, SCIP_Real lhs)
SCIP_RETCODE SCIPcopyOrigConsCompression(SCIP *sourcescip, SCIP *targetscip, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, const char *suffix, SCIP_VAR **fixedvars, SCIP_Real *fixedvals, int nfixedvars, SCIP_Bool enablepricing, SCIP_Bool threadsafe, SCIP_Bool passmessagehdlr, SCIP_Bool *valid)
SCIP_RETCODE SCIPcopyConsCompression(SCIP *sourcescip, SCIP *targetscip, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, const char *suffix, SCIP_VAR **fixedvars, SCIP_Real *fixedvals, int nfixedvars, SCIP_Bool global, SCIP_Bool enablepricing, SCIP_Bool threadsafe, SCIP_Bool passmessagehdlr, SCIP_Bool *valid)
SCIP_RETCODE SCIPgetConsCopy(SCIP *sourcescip, SCIP *targetscip, SCIP_CONS *sourcecons, SCIP_CONS **targetcons, SCIP_CONSHDLR *sourceconshdlr, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, const char *name, 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 global, SCIP_Bool *valid)
SCIP_RETCODE SCIPcopyProb(SCIP *sourcescip, SCIP *targetscip, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_Bool global, const char *name)
SCIP_RETCODE SCIPtranslateSubSol(SCIP *scip, SCIP *subscip, SCIP_SOL *subsol, SCIP_HEUR *heur, SCIP_VAR **subvars, SCIP_SOL **newsol)
SCIP_RETCODE SCIPcopyLimits(SCIP *sourcescip, SCIP *targetscip)
void SCIPgetDecomps(SCIP *scip, SCIP_DECOMP ***decomps, int *ndecomps, SCIP_Bool original)
SCIP_RETCODE SCIPdecompSetVarsLabels(SCIP_DECOMP *decomp, SCIP_VAR **vars, int *labels, int nvars)
int SCIPdecompGetNBlocks(SCIP_DECOMP *decomp)
SCIP_RETCODE SCIPcomputeDecompVarsLabels(SCIP *scip, SCIP_DECOMP *decomp, SCIP_CONS **conss, int nconss)
SCIP_RETCODE SCIPdecompSetConsLabels(SCIP_DECOMP *decomp, SCIP_CONS **conss, int *labels, int nconss)
SCIP_RETCODE SCIPassignDecompLinkConss(SCIP *scip, SCIP_DECOMP *decomp, SCIP_CONS **conss, int nconss, int *nskipconss)
void SCIPfreeDecomp(SCIP *scip, SCIP_DECOMP **decomp)
SCIP_RETCODE SCIPcomputeDecompStats(SCIP *scip, SCIP_DECOMP *decomp, SCIP_Bool uselimits)
SCIP_RETCODE SCIPdecompGetConssSize(SCIP_DECOMP *decomp, int *consssize, int nlabels)
void SCIPdecompGetConsLabels(SCIP_DECOMP *decomp, SCIP_CONS **conss, int *labels, int nconss)
SCIP_RETCODE SCIPcreateDecomp(SCIP *scip, SCIP_DECOMP **decomp, int nblocks, SCIP_Bool original, SCIP_Bool benderslabels)
int SCIPdecompGetNBorderVars(SCIP_DECOMP *decomp)
void SCIPdecompGetVarsLabels(SCIP_DECOMP *decomp, SCIP_VAR **vars, int *labels, int nvars)
SCIP_Bool SCIPdecompUseBendersLabels(SCIP_DECOMP *decomp)
int SCIPdecompGetNBorderConss(SCIP_DECOMP *decomp)
SCIP_RETCODE SCIPfree(SCIP **scip)
SCIP_RETCODE SCIPcreate(SCIP **scip)
SCIP_STATUS SCIPgetStatus(SCIP *scip)
SCIP_RETCODE SCIPaddVar(SCIP *scip, SCIP_VAR *var)
int SCIPgetNIntVars(SCIP *scip)
const char * SCIPgetProbName(SCIP *scip)
SCIP_RETCODE SCIPwriteOrigProblem(SCIP *scip, const char *filename, const char *extension, SCIP_Bool genericnames)
int SCIPgetNOrigBinVars(SCIP *scip)
int SCIPgetNOrigConss(SCIP *scip)
SCIP_VAR ** SCIPgetOrigVars(SCIP *scip)
int SCIPgetNOrigIntVars(SCIP *scip)
SCIP_CONS ** SCIPgetConss(SCIP *scip)
int SCIPgetNVars(SCIP *scip)
SCIP_RETCODE SCIPaddCons(SCIP *scip, SCIP_CONS *cons)
int SCIPgetNConss(SCIP *scip)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
int SCIPgetNOrigVars(SCIP *scip)
SCIP_CONS ** SCIPgetOrigConss(SCIP *scip)
SCIP_RETCODE SCIPwriteTransProblem(SCIP *scip, const char *filename, const char *extension, SCIP_Bool genericnames)
int SCIPgetNBinVars(SCIP *scip)
SCIP_VAR * SCIPfindVar(SCIP *scip, const char *name)
void SCIPhashmapFree(SCIP_HASHMAP **hashmap)
void * SCIPhashmapGetImage(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapCreate(SCIP_HASHMAP **hashmap, BMS_BLKMEM *blkmem, int mapsize)
void SCIPhashtableFree(SCIP_HASHTABLE **hashtable)
#define SCIPhashFour(a, b, c, d)
SCIP_RETCODE SCIPhashtableSafeInsert(SCIP_HASHTABLE *hashtable, void *element)
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)
static INLINE uint32_t SCIPrealHashCode(double x)
SCIP_Longint SCIPhashtableGetNElements(SCIP_HASHTABLE *hashtable)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
SCIP_RETCODE SCIPaddLongintParam(SCIP *scip, const char *name, const char *desc, SCIP_Longint *valueptr, SCIP_Bool isadvanced, SCIP_Longint defaultvalue, SCIP_Longint minvalue, SCIP_Longint maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_Bool SCIPisParamFixed(SCIP *scip, const char *name)
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 SCIPsetLongintParam(SCIP *scip, const char *name, SCIP_Longint value)
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 SCIPsetIntParam(SCIP *scip, const char *name, int value)
SCIP_RETCODE SCIPsetSubscipsOff(SCIP *scip, SCIP_Bool quiet)
SCIP_RETCODE SCIPgetRealParam(SCIP *scip, const char *name, SCIP_Real *value)
SCIP_RETCODE SCIPsetPresolving(SCIP *scip, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
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 SCIPgetIntParam(SCIP *scip, const char *name, int *value)
SCIP_RETCODE SCIPsetBoolParam(SCIP *scip, const char *name, SCIP_Bool value)
SCIP_RETCODE SCIPsetRealParam(SCIP *scip, const char *name, SCIP_Real value)
SCIP_RETCODE SCIPsetSeparating(SCIP *scip, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
SCIP_RETCODE SCIPincludeHeurPADM(SCIP *scip)
SCIP_Bool SCIPconsIsDynamic(SCIP_CONS *cons)
SCIP_CONSHDLR * SCIPconsGetHdlr(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsInitial(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsChecked(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsDeleted(SCIP_CONS *cons)
SCIP_RETCODE SCIPgetConsVars(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **vars, int varssize, SCIP_Bool *success)
SCIP_Bool SCIPconsIsEnforced(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsActive(SCIP_CONS *cons)
SCIP_Bool SCIPconsIsPropagated(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_RETCODE SCIPsetHeurCopy(SCIP *scip, SCIP_HEUR *heur, SCIP_DECL_HEURCOPY((*heurcopy)))
SCIP_HEURDATA * SCIPheurGetData(SCIP_HEUR *heur)
SCIP_RETCODE SCIPincludeHeurBasic(SCIP *scip, SCIP_HEUR **heur, const char *name, const char *desc, char dispchar, int priority, int freq, int freqofs, int maxdepth, SCIP_HEURTIMING timingmask, SCIP_Bool usessubscip, SCIP_DECL_HEUREXEC((*heurexec)), SCIP_HEURDATA *heurdata)
SCIP_RETCODE SCIPsetHeurFree(SCIP *scip, SCIP_HEUR *heur, SCIP_DECL_HEURFREE((*heurfree)))
SCIP_Real SCIPheurGetTime(SCIP_HEUR *heur)
const char * SCIPheurGetName(SCIP_HEUR *heur)
void SCIPheurSetData(SCIP_HEUR *heur, SCIP_HEURDATA *heurdata)
SCIP_Longint SCIPgetMemExternEstim(SCIP *scip)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
SCIP_Longint SCIPgetMemUsed(SCIP *scip)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPfreeBufferArray(scip, ptr)
#define SCIPduplicateMemoryArray(scip, ptr, source, num)
#define SCIPfreeMemoryArray(scip, ptr)
#define SCIPduplicateBufferArray(scip, ptr, source, num)
#define SCIPallocBlockMemoryArray(scip, ptr, num)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
SCIP_SOL * SCIPgetBestSol(SCIP *scip)
SCIP_RETCODE SCIPcreateSol(SCIP *scip, SCIP_SOL **sol, SCIP_HEUR *heur)
SCIP_RETCODE SCIPfreeSol(SCIP *scip, SCIP_SOL **sol)
SCIP_RETCODE SCIPaddSolFree(SCIP *scip, SCIP_SOL **sol, SCIP_Bool *stored)
int SCIPgetNSols(SCIP *scip)
SCIP_RETCODE SCIPcreateOrigSol(SCIP *scip, SCIP_SOL **sol, SCIP_HEUR *heur)
SCIP_RETCODE SCIPgetSolVals(SCIP *scip, SCIP_SOL *sol, int nvars, SCIP_VAR **vars, SCIP_Real *vals)
SCIP_RETCODE SCIPsetSolVals(SCIP *scip, SCIP_SOL *sol, int nvars, SCIP_VAR **vars, SCIP_Real *vals)
SCIP_SOL ** SCIPgetSols(SCIP *scip)
SCIP_RETCODE SCIPtrySolFree(SCIP *scip, SCIP_SOL **sol, SCIP_Bool printreason, SCIP_Bool completely, SCIP_Bool checkbounds, SCIP_Bool checkintegrality, SCIP_Bool checklprows, SCIP_Bool *stored)
SCIP_Real SCIPgetSolOrigObj(SCIP *scip, SCIP_SOL *sol)
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_RETCODE SCIPtransformProb(SCIP *scip)
SCIP_RETCODE SCIPfreeTransform(SCIP *scip)
SCIP_RETCODE SCIPsolve(SCIP *scip)
SCIP_Longint SCIPgetNNodes(SCIP *scip)
SCIP_Real SCIPgetSolvingTime(SCIP *scip)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisInfinity(SCIP *scip, SCIP_Real val)
SCIP_Real SCIPround(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Real SCIPceil(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_Real SCIPvarGetLbOriginal(SCIP_VAR *var)
SCIP_Real SCIPvarGetObj(SCIP_VAR *var)
SCIP_VARTYPE SCIPvarGetType(SCIP_VAR *var)
const char * SCIPvarGetName(SCIP_VAR *var)
SCIP_RETCODE SCIPreleaseVar(SCIP *scip, SCIP_VAR **var)
SCIP_Bool SCIPdoNotMultaggr(SCIP *scip)
SCIP_Real SCIPvarGetLPSol(SCIP_VAR *var)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
SCIP_RETCODE SCIPcreateVarBasic(SCIP *scip, SCIP_VAR **var, const char *name, SCIP_Real lb, SCIP_Real ub, SCIP_Real obj, SCIP_VARTYPE vartype)
SCIP_RETCODE SCIPchgVarObj(SCIP *scip, SCIP_VAR *var, SCIP_Real newobj)
void SCIPsortIntPtr(int *intarray, void **ptrarray, int len)
int SCIPsnprintf(char *t, int len, const char *s,...)
static SCIP_RETCODE getTimeLeft(SCIP *scip, SCIP_Real *time)
static SCIP_RETCODE initProblem(SCIP *scip, PROBLEM **problem, int nblocks)
static SCIP_DECL_HEURFREE(heurFreePADM)
static SCIP_RETCODE blockCreateSubscip(BLOCK *block, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_CONS **conss, int nconss, SCIP_Bool useorigprob, SCIP_Bool *success)
static SCIP_DECL_HASHKEYEQ(indexesEqual)
static SCIP_RETCODE initBlock(PROBLEM *problem)
static SCIP_DECL_HEUREXEC(heurExecPADM)
static SCIP_RETCODE createSubscip(SCIP *scip, SCIP **subscip)
static SCIP_DECL_HASHKEYVAL(indexesHashval)
static SCIP_RETCODE assignLinking(SCIP *scip, SCIP_DECOMP *newdecomp, SCIP_VAR **vars, SCIP_CONS **sortedconss, int *varlabels, int *conslabels, int nvars, int nconss, int nlinkconss)
static SCIP_RETCODE copyToSubscip(SCIP *scip, SCIP *subscip, const char *name, SCIP_CONS **conss, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, int nconss, SCIP_Bool useorigprob, SCIP_Bool *success)
static SCIP_RETCODE reuseSolution(SCIP *subscip, BLOCK *block)
static SCIP_RETCODE createAndSplitProblem(SCIP *scip, SCIP_CONS **sortedconss, int nconss, int *consssize, int nblocks, PROBLEM **problem, SCIP_Bool useorigprob, SCIP_Bool *success)
static SCIP_RETCODE scalePenalties(PROBLEM *problem, SET *linkvartoblocks, SET *blocktolinkvars, SCIP_HASHTABLE *htable, SCIP_Real maxpenalty)
static SCIP_DECL_HEURCOPY(heurCopyPADM)
#define DEFAULT_PENALTYIT
static SCIP_RETCODE freeBlock(BLOCK *block)
struct blockinfo BLOCKINFO
static SCIP_RETCODE reoptimize(SCIP *scip, SCIP_HEUR *heur, SCIP_SOL *sol, SCIP_VAR **vars, int nvars, SCIP_VAR **linkvars, int nlinkvars, SCIP_SOL **newsol, SCIP_Bool *success)
static SCIP_RETCODE freeProblem(PROBLEM **problem, int nblocks)
methods commonly used by primal heuristics
memory allocation routines
BMS_BLKMEM * SCIPblkmem(SCIP *scip)
public methods for managing constraints
public methods for primal heuristics
public methods for message output
public data structures and miscellaneous methods
methods for selecting (weighted) k-medians
public methods for primal CIP solutions
public methods for branch and bound tree
public methods for problem variables
public methods for branching rule plugins and branching
public methods for constraint handler plugins and constraints
public methods for problem copies
public methods for decompositions
public methods for primal heuristic plugins and divesets
public methods for the LP relaxation, rows and columns
public methods for memory management
public methods for message handling
public methods for node selector plugins
public methods for numerical tolerances
public methods for SCIP parameter handling
public methods for global and local (sub)problems
public methods for random numbers
public methods for solutions
public methods for querying solving statistics
public methods for statistics table plugins
public methods for timing
public methods for the branch-and-bound tree
public methods for SCIP variables
SCIP_RETCODE SCIPincludeDefaultPlugins(SCIP *scip)
SCIP_CONS ** couplingcons
SCIP_Real slackposobjcoeff
SCIP_Real slacknegobjcoeff
#define SCIP_DECOMP_LINKVAR
#define SCIP_DECOMP_LINKCONS
struct SCIP_HeurData SCIP_HEURDATA
enum SCIP_Retcode SCIP_RETCODE
@ SCIP_STATUS_BESTSOLLIMIT
enum SCIP_Status SCIP_STATUS
#define SCIP_HEURTIMING_AFTERNODE
#define SCIP_HEURTIMING_BEFORENODE
@ SCIP_VARTYPE_CONTINUOUS
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