ressource activity data structure
Functions | |
| SCIP_RETCODE | SCIPactivityCreate (SCIP_RESOURCEACTIVITY **activity, SCIP_VAR *var, int duration, int demand) |
| void | SCIPactivityFree (SCIP_RESOURCEACTIVITY **activity) |
| SCIP_VAR * | SCIPactivityGetVar (SCIP_RESOURCEACTIVITY *activity) |
| int | SCIPactivityGetDuration (SCIP_RESOURCEACTIVITY *activity) |
| int | SCIPactivityGetDemand (SCIP_RESOURCEACTIVITY *activity) |
| int | SCIPactivityGetEnergy (SCIP_RESOURCEACTIVITY *activity) |
| SCIP_RETCODE SCIPactivityCreate | ( | SCIP_RESOURCEACTIVITY ** | activity, |
| SCIP_VAR * | var, | ||
| int | duration, | ||
| int | demand | ||
| ) |
create a resource activity
| activity | pointer to store the resource activity |
| var | start time variable of the activity |
| duration | duration of the activity |
| demand | demand of the activity |
Definition at line 6157 of file misc.c.
References BMSallocMemory, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPrealHashCode().
| void SCIPactivityFree | ( | SCIP_RESOURCEACTIVITY ** | activity | ) |
frees a resource activity
| activity | pointer to the resource activity |
Definition at line 6176 of file misc.c.
References BMSfreeMemory.
Referenced by SCIPrealHashCode().
| SCIP_VAR* SCIPactivityGetVar | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the start time variable of the resource activity
| activity | resource activity |
Definition at line 6202 of file misc.c.
References SCIP_ResourceActivity::var.
Referenced by SCIPrealHashCode().
| int SCIPactivityGetDuration | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the duration of the resource activity
| activity | resource activity |
Definition at line 6212 of file misc.c.
References SCIP_ResourceActivity::duration.
Referenced by SCIPrealHashCode().
| int SCIPactivityGetDemand | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the demand of the resource activity
| activity | resource activity |
Definition at line 6222 of file misc.c.
References SCIP_ResourceActivity::demand.
Referenced by SCIPrealHashCode().
| int SCIPactivityGetEnergy | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the energy of the resource activity
| activity | resource activity |
Definition at line 6232 of file misc.c.
References SCIP_ResourceActivity::demand, and SCIP_ResourceActivity::duration.
Referenced by SCIPrealHashCode().