Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

Functions

int SCIPgetRandomInt (int minrandval, int maxrandval, unsigned int *seedp)
 
SCIP_Real SCIPgetRandomReal (SCIP_Real minrandval, SCIP_Real maxrandval, unsigned int *seedp)
 

Function Documentation

int SCIPgetRandomInt ( int  minrandval,
int  maxrandval,
unsigned int *  seedp 
)

returns a random integer between minrandval and maxrandval

Parameters
minrandvalminimal value to return
maxrandvalmaximal value to return
seedppointer to seed value

Definition at line 7203 of file misc.c.

References getRand(), SCIP_RAND_MAX, and SCIP_Real.

Referenced by createSubproblem(), getRandomVariable(), optimize(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_HEUREXEC(), SCIPgetRandomSubset(), SCIPpermuteArray(), SCIPpermuteIntArray(), and selectSolsRandomized().

SCIP_Real SCIPgetRandomReal ( SCIP_Real  minrandval,
SCIP_Real  maxrandval,
unsigned int *  seedp 
)

returns a random real between minrandval and maxrandval

Parameters
minrandvalminimal value to return
maxrandvalmaximal value to return
seedppointer to seed value

Definition at line 7222 of file misc.c.

References getRand(), SCIP_RAND_MAX, and SCIP_Real.

Referenced by handleCycle(), performRandRounding(), SCIPexprgraphSimplify(), and SCIPexprtreeSimplify().