ruspy.simulation.simulation_functions.simulate_strategy_reduced_data_utilities

ruspy.simulation.simulation_functions.simulate_strategy_reduced_data_utilities(num_periods, num_buses, costs, ev, trans_mat, disc_fac, seed)[source]

Simulating the decision process with reduced data usage.

This function simulates the decision strategy, as long as the current period is below the number of periods and the current highest state of a bus is in the first half of the state space.

Parameters
num_periodspython:int

The number of periods to be simulated.

num_busespython:int

The number of buses to be simulated.

costsnumpy.ndarray

see Observed costs

evnumpy.ndarray

see Expected value of maintenance

trans_matnumpy.ndarray

see Transition matrix

disc_facpython:float

see Discount factor

seedpython:int

A positive integer setting the random seed for drawing random numbers.

Returns
utilitiesnumpy.ndarray

A two dimensional numpy array containing for each bus in each period the utility as a float.