222 for(
i = 0;
i < nstates; ++
i )
225 fractionality[
i] = 0;
229 for( j = 0; j < nsuccessors[0]; ++j )
232 states[1] = successors[0][j];
236 fractionality[states[0]] +=
MIN(lpvalforward, 1 - lpvalforward) +
MIN(1 - lpvalincluster, lpvalincluster);
250 for( j = 0; j < nsuccessors[0] && ncutscreated <
MAXCUTSCREATED; ++j )
252 states[1] = successors[0][j];
256 for( k = 0; k < nsuccessors[1] && ncutscreated <
MAXCUTSCREATED; ++k )
258 states[2] = successors[1][k];
266 if( states[1] > states[2] )
270 firstpart[0] = states[0];
273 secondpart[0] = states[1];
274 secondpart[1] = states[2];
288 for( l = 0; l < nsuccessors[2]; ++l )
290 states[3] = successors[2][l];
300 if( violationchg > bestvalue )
302 bestvalue = violationchg;
303 secondpart[2] = states[3];
307 states[3] = secondpart[2];
310 if( states[3] == -1 )
317 violation += bestvalue;
321 for( l = 0; l < nsuccessors[3]; ++l )
323 states[4] = successors[3][l];
330 MAX(states[0], states[4]),
MIN(states[0],states[4]),
INCLUSTER)) - 1.0;
338 firstpart[1] = states[4];
341 nfirst, nsecond, &violations, violation + violationchg) );
350 firstpart[0] = states[1];
351 firstpart[1] = states[2];
354 secondpart[0] = states[0];
367 for( l = 0; l < nsuccessors[2]; ++l )
369 states[3] = successors[2][l];
379 if( violationchg > bestvalue )
381 bestvalue = violationchg;
382 firstpart[2] = states[3];
386 states[3] = firstpart[2];
388 if( states[3] == -1 )
395 violation += bestvalue;
399 for( l = 0; l < nsuccessors[3]; ++l )
401 states[4] = successors[3][l];
407 MAX(states[0], states[4]),
MIN(states[0],states[4]),
INCLUSTER)) - 1.0;
415 secondpart[1] = states[4];
418 secondpart, nfirst, nsecond, &violations, violation + violationchg) );
430 if( usecutselection )
442 goodmaxparall, maxparall, dircutoffdist, efficacyweight, objparalweight, intsuppweight,
443 ncutscreated, 0,
MAXCUTS, &ncutsapplied) );
451 for( j = 0; j < ncutsapplied; ++j )
462 for(
i = 0;
i < ncutscreated; ++
i )
SCIP_RETCODE SCIPselectCutsHybrid(SCIP *scip, SCIP_ROW **cuts, SCIP_ROW **forcedcuts, SCIP_RANDNUMGEN *randnumgen, SCIP_Real goodscorefac, SCIP_Real badscorefac, SCIP_Real goodmaxparall, SCIP_Real maxparall, SCIP_Real dircutoffdistweight, SCIP_Real efficacyweight, SCIP_Real objparalweight, SCIP_Real intsupportweight, int ncuts, int nforcedcuts, int maxselectedcuts, int *nselectedcuts)
SCIP_RETCODE SCIPincludeSepaBasic(SCIP *scip, SCIP_SEPA **sepa, const char *name, const char *desc, int priority, int freq, SCIP_Real maxbounddist, SCIP_Bool usessubscip, SCIP_Bool delay, SCIP_DECL_SEPAEXECLP((*sepaexeclp)), SCIP_DECL_SEPAEXECSOL((*sepaexecsol)), SCIP_SEPADATA *sepadata)