public class OrderProcessing extends DTMDP<examples.jmdp.PendingOrders,examples.jmdp.ProcessAction>
Constructor and Description |
---|
OrderProcessing(int initialPendingOrders,
double setupCost,
double unfilledOrderCost,
int MaxOrders,
double theta) |
Modifier and Type | Method and Description |
---|---|
double |
averageOrders() |
double |
computeMOPs(examples.jmdp.PendingOrders i,
examples.jmdp.OrderProcessing.Measure m) |
Actions<examples.jmdp.ProcessAction> |
feasibleActions(examples.jmdp.PendingOrders i)
Returns the set of actions available at this state.
|
double |
immediateCost(examples.jmdp.PendingOrders i,
examples.jmdp.ProcessAction a)
Cost incurred when taking action a from state i
|
static StatesSet<examples.jmdp.PendingOrders> |
initialize(int initPendingOrders) |
static examples.jmdp.PendingOrders |
initialState(int initPendingOrders) |
static void |
main(java.lang.String[] args) |
double |
prob(examples.jmdp.PendingOrders i,
examples.jmdp.PendingOrders j,
examples.jmdp.ProcessAction a)
Probability of going from state i to state j by taking the
action a
|
States<examples.jmdp.PendingOrders> |
reachable(examples.jmdp.PendingOrders i,
examples.jmdp.ProcessAction a)
Set of states that can be reached from this state i, after
taking the action a.
|
getSteadyStateProbabilities, setProbabilitySolver, solve
getAllStates, getNumStates, getSolver
debug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solve
public OrderProcessing(int initialPendingOrders, double setupCost, double unfilledOrderCost, int MaxOrders, double theta)
initialPendingOrders
- Number of initial pending orderssetupCost
- Setup costunfilledOrderCost
- Cost of unfilled order per order per stageMaxOrders
- Maximum orders pendingtheta
- Demand ratepublic States<examples.jmdp.PendingOrders> reachable(examples.jmdp.PendingOrders i, examples.jmdp.ProcessAction a)
DTMDP
public double immediateCost(examples.jmdp.PendingOrders i, examples.jmdp.ProcessAction a)
DTMDP
immediateCost
in class DTMDP<examples.jmdp.PendingOrders,examples.jmdp.ProcessAction>
i
- Current Statea
- Current Actionpublic Actions<examples.jmdp.ProcessAction> feasibleActions(examples.jmdp.PendingOrders i)
InfiniteMDP
feasibleActions
in class InfiniteMDP<examples.jmdp.PendingOrders,examples.jmdp.ProcessAction>
i
- Current Statepublic double prob(examples.jmdp.PendingOrders i, examples.jmdp.PendingOrders j, examples.jmdp.ProcessAction a)
DTMDP
public double computeMOPs(examples.jmdp.PendingOrders i, examples.jmdp.OrderProcessing.Measure m)
i
- Number of pending ordersm
- Required MOPpublic double averageOrders() throws SolverException
SolverException
public static StatesSet<examples.jmdp.PendingOrders> initialize(int initPendingOrders)
initPendingOrders
- public static examples.jmdp.PendingOrders initialState(int initPendingOrders)
initPendingOrders
- public static void main(java.lang.String[] args) throws SolverException
args
- SolverException