Loading...
Searching...
No Matches
score_fawh.cpp
Go to the documentation of this file.
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
46#define SCORE_DESC "maximum foreseeing white area score with aggregation info (considering copied linking vars and their master conss; white area is nonblock and nonborder area)"
86 std::vector<int> nblocksforlinkingvar(partialdec->getNLinkingvars() + partialdec->getNTotalStairlinkingvars(), 0);
142 newmasterarea = ( partialdec->getNMasterconss() + sumblockshittinglinkingvar) * ( partialdec->getNVars() + sumlinkingvarshittingblock );
148 * ( partialdec->getNVarsForBlock(partialdec->getBlocksForEqClass(br)[0]) + nlinkingvarsforblock[partialdec->getBlocksForEqClass(br)[0]] );
151 SCIP_Real maxforeseeingwhitescoreagg = newwidth == 0 ? 1. : ((SCIP_Real ) newblockareaagg + (SCIP_Real) newmasterarea) / (SCIP_Real) newwidth;
152 maxforeseeingwhitescoreagg = newheight == 0 ? 1. : maxforeseeingwhitescoreagg / (SCIP_Real) newheight;
155 assert(maxforeseeingwhitescoreagg == SCIP_INVALID || (maxforeseeingwhitescoreagg >= 0.0 && maxforeseeingwhitescoreagg <= 1.0));
168/** creates the maximum foreseeing white area score with aggregation info score and includes it in SCIP */
SCIP_VAR ** b
class storing partialdecs and the problem matrix
class storing (potentially incomplete) decompositions
Definition class_detprobdata.h:110
GCG_EXPORT SCIP_Real getVal(int row, int col)
returns a coefficient from the coefficient matrix
Definition class_detprobdata.cpp:976
GCG_EXPORT int getNMasterconss()
Gets size of the vector containing master conss.
Definition class_partialdecomp.cpp:4481
GCG_EXPORT int getNEquivalenceClasses()
Gets the number of blockrepresentatives.
Definition class_partialdecomp.cpp:4515
GCG_EXPORT int getNStairlinkingvars(int block)
Gets size of the vector containing stairlinking vars.
Definition class_partialdecomp.cpp:4521
GCG_EXPORT std::vector< int > & getConssForBlock(int block)
returns array containing constraints assigned to a block
Definition class_partialdecomp.cpp:3968
GCG_EXPORT const std::vector< int > & getBlocksForEqClass(int eqclass)
get a vector of block ids that are contained in the equivalence class eqclass
Definition class_partialdecomp.cpp:3868
GCG_EXPORT DETPROBDATA * getDetprobdata()
Gets the corresponding detprobdata.
Definition class_partialdecomp.cpp:4725
GCG_EXPORT void calcAggregationInformation(bool ignoreDetectionLimits)
computes if aggregation of sub problems is possible
Definition class_partialdecomp.cpp:1270
GCG_EXPORT int getNVarsForBlock(int block)
Gets size of the vector containing vars assigned to a block.
Definition class_partialdecomp.cpp:4537
GCG_EXPORT std::vector< int > & getLinkingvars()
returns array containing all linking vars indices
Definition class_partialdecomp.cpp:4261
GCG_EXPORT int getNLinkingvars()
Gets size of the vector containing linking vars.
Definition class_partialdecomp.cpp:4459
GCG_EXPORT int getNTotalStairlinkingvars()
Gets total number of stairlinking vars.
Definition class_partialdecomp.cpp:4493
GCG_EXPORT int getNConssForBlock(int block)
Gets size of the vector containing conss assigned to a block.
Definition class_partialdecomp.cpp:4432
PARTIALDECOMP * GCGconshdlrDecompGetPartialdecFromID(GCG *gcg, int partialdecid)
local method to find a partialdec for a given id or NULL if no partialdec with such id is found
Definition cons_decomp.cpp:281
constraint handler for structure detection
C++ interface of cons_decomp.
#define SCIP_INVALID
#define SCIP_Real
GCG_EXPORT SCIP_RETCODE GCGincludeScore(GCG *gcg, const char *name, const char *shortname, const char *description, GCG_SCOREDATA *scoredata, GCG_DECL_SCOREFREE((*scorefree)),)
creates a score and includes it in GCG
Definition score.c:50
SCIP_Bool SCIPisZero(SCIP *scip, SCIP_Real val)
static assert(heur !=NULL)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
#define NULL
Definition class_conspartition.cpp:44
maximum foreseeing white area score with aggregation infos score
Definition score_bender.cpp:52
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP