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 7700 of file misc.c.

References getRand(), SCIP_RAND_MAX, and SCIP_Real.

Referenced by createSubproblem(), getRandomVariable(), optimize(), permuteRandom(), 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 7719 of file misc.c.

References getRand(), SCIP_RAND_MAX, and SCIP_Real.

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