ruspy.estimation.mpec.mpec_loglike_cost_params_derivative

ruspy.estimation.mpec.mpec_loglike_cost_params_derivative(maint_func, maint_func_dev, num_states, num_params, disc_fac, scale, decision_mat, state_mat, mpec_params)[source]

Computing the analytical gradient of the objective function for MPEC.

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.

num_paramspython:int

Length of cost parameter vector.

disc_facnumpy.float

see Discount factor

scalenumpy.float

see Scale

decision_matnumpy.array

see Decision Matrix

state_matnumpy.array

see State matrix

mpec_paramsnumpy.array

see MPEC

Returns
gradientnumpy.array

Vector that holds the derivative of the negative log likelihood function to the parameters.