public class StochSolutionParams extends Object
StochSolution
.
This parameter object can be used to create the object of class StochSolution
.Modifier and Type | Field and Description |
---|---|
double |
cost
The stochastic cost of this solution.
|
List<Integer> |
coveredScenarios
The list of covered scenarios.
|
int |
numGroups
The number of agent groups.
|
int |
numScenarios
The number of scenarios.
|
int[][] |
rMinus
The recourse variables for removing agents, with indices
[group][scenario] . |
int[][] |
rPlus
The recourse variables for adding agents, with indices
[group][scenario] . |
int[] |
staffing
The staffing vector (non-recourse).
|
Constructor and Description |
---|
StochSolutionParams() |
public int numGroups
public int numScenarios
public int[] staffing
public int[][] rPlus
[group][scenario]
.
This matrix must include the recourse values for all scenarios, including the
non-covered scenarios.public int[][] rMinus
[group][scenario]
.
This matrix must include the recourse values for all scenarios, including the
non-covered scenarios.public List<Integer> coveredScenarios
public double cost
public List<Integer> getStaffing()
staffing
.
The size of this list is equal to the number of groups.staffing
public void setStaffing(List<Integer> l)
staffing
.l
- the list containing the number of agents of each grouppublic IntArray getRPlus()
IntArray
matrix from the array rPlus
.
Each row
represents a group and
the elements in a row
represent the recourse value of that group
for the different scenarios.
This matrix includes the recourse values of all scenarios, including
the non-covered scenarios.rPlus
public void setRPlus(IntArray r)
rPlus
from a IntArray
parameter.
Each row
represents a group and
the elements in a row
represent the recourse value of that group
for the different scenarios.
This matrix includes the recourse values of all scenarios, including
the non-covered scenarios.r
- the matrix representing the recourse action of adding more agents,
with indices [group][scenario]
public IntArray getRMinus()
IntArray
matrix from the array rMinus
.
Each row
represents a group and
the elements in a row
represent the recourse value of that group
for the different scenarios.
This matrix includes the recourse values of all scenarios, including
the non-covered scenarios.rMinus
public void setRMinus(IntArray r)
rMinus
from a IntArray
parameter.
Each row
represents a group and
the elements in a row
represent the recourse value of that group
for the different scenarios.
This matrix includes the recourse values of all scenarios, including
the non-covered scenarios.r
- the matrix representing the recourse action of removing more agents,
with indices [group][scenario]