public class AccessControl extends DTMDPEv<TandemQueues,Admit,TandemEvent>
Constructor and Description |
---|
AccessControl(States<TandemQueues> init,
double c1,
double c2,
double lambda,
double mu1,
double mu2,
int b1,
int b2)
Builds a AccessControl
|
Modifier and Type | Method and Description |
---|---|
Events<TandemEvent> |
activeEvents(TandemQueues i,
Admit a)
Set of events that are active from state i given that action a is taken.
|
Actions<Admit> |
feasibleActions(TandemQueues i)
Returns the set of actions available at this state.
|
double |
immediateCost(TandemQueues i,
Admit a,
TandemEvent e)
Cost incurred received when the current state is i, the action taken is a
and event e occurs.
|
static void |
main(java.lang.String[] args)
This method just tests the class.
|
double |
prob(TandemQueues i,
TandemEvent e)
Conditional Event probability.
|
double |
prob(TandemQueues i,
TandemQueues j,
Admit a,
TandemEvent e)
Conditional destination probability.
|
States<TandemQueues> |
reachable(TandemQueues i,
Admit a,
TandemEvent e)
Set of reachable states from state i given that action a is taken and
event e occurs.
|
immediateCost, prob, reachable
getSteadyStateProbabilities, setProbabilitySolver, solve
getAllStates, getNumStates, getSolver
debug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solve
public AccessControl(States<TandemQueues> init, double c1, double c2, double lambda, double mu1, double mu2, int b1, int b2)
c1
- Cost of refusing to admit an arriving customerc2
- Cost of losing a customer at the second stationb1
- Capacity of first stationb2
- Capacity of second stationlambda
- Arrival rate to the systemmu1
- Service rate of station 1mu2
- Service rate at station 2public Events<TandemEvent> activeEvents(TandemQueues i, Admit a)
DTMDPEv
activeEvents
in class DTMDPEv<TandemQueues,Admit,TandemEvent>
i
- current statea
- action takenpublic States<TandemQueues> reachable(TandemQueues i, Admit a, TandemEvent e)
DTMDPEv
reachable
in class DTMDPEv<TandemQueues,Admit,TandemEvent>
i
- current statea
- action takene
- event that occurspublic Actions<Admit> feasibleActions(TandemQueues i)
InfiniteMDP
feasibleActions
in class InfiniteMDP<TandemQueues,Admit>
i
- Current Statepublic double immediateCost(TandemQueues i, Admit a, TandemEvent e)
DTMDPEv
immediateCost
in class DTMDPEv<TandemQueues,Admit,TandemEvent>
i
- current statea
- action takene
- event that occurspublic double prob(TandemQueues i, TandemQueues j, Admit a, TandemEvent e)
DTMDPEv
prob
in class DTMDPEv<TandemQueues,Admit,TandemEvent>
i
- current statej
- state to reacha
- action taken (given)e
- event that occurs (given)public double prob(TandemQueues i, TandemEvent e)
DTMDPEv
prob
in class DTMDPEv<TandemQueues,Admit,TandemEvent>
i
- current statee
- event that occurspublic static void main(java.lang.String[] args) throws SolverException
args
- Not usedSolverException