Scippy

SCIP

Solving Constraint Integer Programs

Resource activity

Detailed Description

Functions

SCIP_RETCODE SCIPactivityCreate (SCIP_RESOURCEACTIVITY **activity, SCIP_VAR *var, int duration, int demand)
 
void SCIPactivityFree (SCIP_RESOURCEACTIVITY **activity)
 
SCIP_VARSCIPactivityGetVar (SCIP_RESOURCEACTIVITY *activity)
 
int SCIPactivityGetDuration (SCIP_RESOURCEACTIVITY *activity)
 
int SCIPactivityGetDemand (SCIP_RESOURCEACTIVITY *activity)
 
int SCIPactivityGetEnergy (SCIP_RESOURCEACTIVITY *activity)
 

Function Documentation

SCIP_RETCODE SCIPactivityCreate ( SCIP_RESOURCEACTIVITY **  activity,
SCIP_VAR var,
int  duration,
int  demand 
)

create a resource activity

Parameters
activitypointer to store the resource activity
varstart time variable of the activity
durationduration of the activity
demanddemand of the activity
void SCIPactivityFree ( SCIP_RESOURCEACTIVITY **  activity)

frees a resource activity

Parameters
activitypointer to the resource activity
SCIP_VAR* SCIPactivityGetVar ( SCIP_RESOURCEACTIVITY activity)

returns the start time variable of the resource activity

Parameters
activityresource activity
int SCIPactivityGetDuration ( SCIP_RESOURCEACTIVITY activity)

returns the duration of the resource activity

Parameters
activityresource activity
int SCIPactivityGetDemand ( SCIP_RESOURCEACTIVITY activity)

returns the demand of the resource activity

Parameters
activityresource activity
int SCIPactivityGetEnergy ( SCIP_RESOURCEACTIVITY activity)

returns the energy of the resource activity

Parameters
activityresource activity