public class CTInventory extends CTMDP<examples.jmdp.CTStock,Order>
Constructor and Description |
---|
CTInventory(States<examples.jmdp.CTStock> initSet,
int maxCapacity,
int truckSize,
double K,
double cost,
double price,
double holdingCost,
double demandRateA,
double leadTime) |
Modifier and Type | Method and Description |
---|---|
double |
continuousCost(examples.jmdp.CTStock i,
Order a)
Cost incurred continuously in time until the next transition
from state i given that action a is taken.
|
Actions<Order> |
feasibleActions(examples.jmdp.CTStock i)
Returns the set of actions available at this state.
|
void |
initializeProbabilities()
Initialize the probabilities
|
double |
lumpCost(examples.jmdp.CTStock i,
Order a)
Cost incurred instantaneously in the moment when action a is
taken from state i.
|
static void |
main(java.lang.String[] args)
This method just tests the class.
|
double |
rate(examples.jmdp.CTStock i,
examples.jmdp.CTStock j,
Order a)
Rate of going from state i to state j by taking the action a
|
States<examples.jmdp.CTStock> |
reachable(examples.jmdp.CTStock i,
Order a)
Set of States that can be reached from this state i, after
taking the action a.
|
getAllStates, getMaxRate, getSteadyStateProbabilities, setConverter, solve
getNumStates, getSolver
debug, debug, debug, getDebugLevel, getOptimalPolicy, getOptimalValueFunction, getReporter, isFinite, isSolved, operation, printSolution, printSolution, setDebugLevel, setReporter, setSolver, solve
public CTInventory(States<examples.jmdp.CTStock> initSet, int maxCapacity, int truckSize, double K, double cost, double price, double holdingCost, double demandRateA, double leadTime)
initSet
- Initial statemaxCapacity
- maximum physical capacity in inventory, warehouse sizetruckSize
- maximum physical capacity of truck to carrying itemsK
- Fixed cost per Ordercost
- Variable costprice
- Sell price of item AholdingCost
- Inventory holding cost per perioddemandRateA
- Demand rate for item AleadTime
- Time between the moment when the order is placed and the
moment the order arrivespublic void initializeProbabilities()
public Actions<Order> feasibleActions(examples.jmdp.CTStock i)
InfiniteMDP
feasibleActions
in class InfiniteMDP<examples.jmdp.CTStock,Order>
i
- Current Statepublic States<examples.jmdp.CTStock> reachable(examples.jmdp.CTStock i, Order a)
CTMDP
public double rate(examples.jmdp.CTStock i, examples.jmdp.CTStock j, Order a)
CTMDP
public double lumpCost(examples.jmdp.CTStock i, Order a)
CTMDP
public double continuousCost(examples.jmdp.CTStock i, Order a)
CTMDP
continuousCost
in class CTMDP<examples.jmdp.CTStock,Order>
i
- Statea
- Actionpublic static void main(java.lang.String[] args) throws SolverException
args
- Not usedSolverException