ruspy.estimation.nfxp.derivative_loglike_cost_params

ruspy.estimation.nfxp.derivative_loglike_cost_params(params, maint_func, maint_func_dev, num_states, trans_mat, state_mat, decision_mat, disc_fac, scale, alg_details)[source]

sums up the Jacobian to obtain the gradient of the negative log likelihood function needed for algorithm such as the L-BFGS-B.

Parameters
paramsnumpy.ndarray

see Cost parameters

maint_func: func

see Maintenance cost function

maint_func_dev: func

see Maintenance cost function

num_statespython:int

The size of the state space.

trans_matnumpy.ndarray

see Transition matrix

state_matnumpy.ndarray

see State matrix

decision_matnumpy.ndarray

see Decision Matrix

disc_facnumpy.float

see Discount factor

scalenumpy.float

see Scale

alg_detailspython:dict

see :ref: alg_details

Returns
dev numpy.ndarray

A dimension(params) sized vector containing the gradient of the negative likelihood function.