ruspy.simulation.simulation_model.decide

ruspy.simulation.simulation_model.decide(old_state, costs, disc_fac, ev)[source]

Choosing action in current state.

Parameters
old_state: int

Current state.

costsnumpy.ndarray

see Observed costs

disc_facpython:float

see Discount factor

evnumpy.ndarray

see Expected value of maintenance

Returns
intermediate_statepython:int

State before transition.

decisionpython:int

Decision of this period.

utilitypython:float

Utility of this period.