ruspy.model_code.cost_functions.cubic_costs

ruspy.model_code.cost_functions.cubic_costs(num_states, params, scale)[source]

Calculating for each state the observed costs of maintenance in the case of a cubic cost function.

Parameters
num_statespython:int

The size of the state space.

paramsnumpy.ndarray

see Cost parameters

scalenumpy.float

see Scale

Returns
costsnumpy.ndarray

A num_states sized one dimensional numpy array containing the maintenance costs for each state.