Detailed Description
ressource activity data structure
Functions | |
SCIP_EXPORT SCIP_RETCODE | SCIPactivityCreate (SCIP_RESOURCEACTIVITY **activity, SCIP_VAR *var, int duration, int demand) |
SCIP_EXPORT void | SCIPactivityFree (SCIP_RESOURCEACTIVITY **activity) |
SCIP_EXPORT SCIP_VAR * | SCIPactivityGetVar (SCIP_RESOURCEACTIVITY *activity) |
SCIP_EXPORT int | SCIPactivityGetDuration (SCIP_RESOURCEACTIVITY *activity) |
SCIP_EXPORT int | SCIPactivityGetDemand (SCIP_RESOURCEACTIVITY *activity) |
SCIP_EXPORT int | SCIPactivityGetEnergy (SCIP_RESOURCEACTIVITY *activity) |
Function Documentation
◆ SCIPactivityCreate()
SCIP_EXPORT SCIP_RETCODE SCIPactivityCreate | ( | SCIP_RESOURCEACTIVITY ** | activity, |
SCIP_VAR * | var, | ||
int | duration, | ||
int | demand | ||
) |
create a resource activity
- Parameters
-
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 6543 of file misc.c.
References BMSallocMemory, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPrealHashCode().
◆ SCIPactivityFree()
SCIP_EXPORT void SCIPactivityFree | ( | SCIP_RESOURCEACTIVITY ** | activity | ) |
frees a resource activity
- Parameters
-
activity pointer to the resource activity
Definition at line 6562 of file misc.c.
References BMSfreeMemory, and NULL.
Referenced by SCIPrealHashCode().
◆ SCIPactivityGetVar()
SCIP_EXPORT SCIP_VAR* SCIPactivityGetVar | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the start time variable of the resource activity
- Parameters
-
activity resource activity
Definition at line 6588 of file misc.c.
References NULL, and SCIP_ResourceActivity::var.
Referenced by SCIPrealHashCode().
◆ SCIPactivityGetDuration()
SCIP_EXPORT int SCIPactivityGetDuration | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the duration of the resource activity
- Parameters
-
activity resource activity
Definition at line 6598 of file misc.c.
References SCIP_ResourceActivity::duration, and NULL.
Referenced by SCIPrealHashCode().
◆ SCIPactivityGetDemand()
SCIP_EXPORT int SCIPactivityGetDemand | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the demand of the resource activity
- Parameters
-
activity resource activity
Definition at line 6608 of file misc.c.
References SCIP_ResourceActivity::demand, and NULL.
Referenced by SCIPrealHashCode().
◆ SCIPactivityGetEnergy()
SCIP_EXPORT int SCIPactivityGetEnergy | ( | SCIP_RESOURCEACTIVITY * | activity | ) |
returns the energy of the resource activity
- Parameters
-
activity resource activity
Definition at line 6618 of file misc.c.
References SCIP_ResourceActivity::demand, SCIP_ResourceActivity::duration, and NULL.
Referenced by SCIPrealHashCode().