ruspy.model_code.fix_point_alg.calc_fixp
- ruspy.model_code.fix_point_alg.calc_fixp(trans_mat, obs_costs, disc_fac, threshold=1e-12, switch_tol=0.001, max_contr_steps=20, max_newt_kant_steps=20)[source]
Calculating the expected value of maintenance fixed point with the polyalgorithm proposed by Rust (1987) and Rust (2000).
- Parameters
- trans_mat
numpy.ndarray
- obs_costs
numpy.ndarray
see Observed costs
- disc_fac
numpy.float
see Discount factor
- threshold
numpy.float
- switch_tol
numpy.float
- max_contr_steps
python:int
- max_newt_kant_steps
python:int
- trans_mat
- Returns
- ev_new
numpy.ndarray
- contr_step_count
python:int
shows the amount of contraction iterations needed to find the fixed point.
- newt_kant_step_count
python:int
shows the amount of Newton-Kantorovich iterations needed to find the fixed point.
- ev_new