public abstract class Recursion extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Recursion.OptimisationDirection |
Modifier and Type | Field and Description |
---|---|
protected Recursion.OptimisationDirection |
direction |
protected int |
horizonLength |
protected boolean |
stateMonitoring |
protected StateSpace<?>[] |
stateSpace |
protected TransitionProbability |
transitionProbability |
protected ValueRepository |
valueRepository |
Modifier | Constructor and Description |
---|---|
protected |
Recursion(Recursion.OptimisationDirection direction)
Creates an instance of
Recursion with the given optimisatio direction. |
Modifier and Type | Method and Description |
---|---|
double |
getExpectedValue(State state)
Returns the expected value associated with
state . |
StateSpace<?>[] |
getStateSpace()
Returns the
StateSpace array for the stochastic process planning horizon. |
StateSpace<?> |
getStateSpace(int period)
Returns the
StateSpace for period period . |
TransitionProbability |
getTransitionProbability()
Returns the
TransitionProbability of the stochastic process. |
ValueRepository |
getValueRepository()
Returns the
ValueRepository of the stochastic process. |
void |
setStateMonitoring(boolean stateMonitoring)
If
stateMonitoring is true state generation and reuse
are monitored during the recursion. |
protected int horizonLength
protected StateSpace<?>[] stateSpace
protected TransitionProbability transitionProbability
protected ValueRepository valueRepository
protected final Recursion.OptimisationDirection direction
protected boolean stateMonitoring
protected Recursion(Recursion.OptimisationDirection direction)
Recursion
with the given optimisatio direction.direction
- the direction of optimisation.public double getExpectedValue(State state)
state
.state
- the target state.state
.public StateSpace<?> getStateSpace(int period)
StateSpace
for period period
.period
- the target period.StateSpace
for period period
.public StateSpace<?>[] getStateSpace()
StateSpace
array for the stochastic process planning horizon.StateSpace
array for the stochastic process planning horizon.public TransitionProbability getTransitionProbability()
TransitionProbability
of the stochastic process.TransitionProbability
of the stochastic process.public ValueRepository getValueRepository()
ValueRepository
of the stochastic process.ValueRepository
of the stochastic process.public void setStateMonitoring(boolean stateMonitoring)
stateMonitoring
is true
state generation and reuse
are monitored during the recursion.stateMonitoring
- status of state monitoringCopyright © 2017–2018. All rights reserved.