ruspy.model_code.cost_functions.lin_cost_dev¶
-
ruspy.model_code.cost_functions.
lin_cost_dev
(num_states, scale)[source]¶ Calculating for each state the derivative of the linear maintenance cost function.
- Parameters
- num_states
python:int
The size of the state space.
- scale
numpy.float
see Scale
- num_states
- Returns
- dev
numpy.array
A num_states sized one dimensional numpy array containing the derivative of the linear maintenance cost function for each state.
- dev