ruspy.estimation.mpec.mpec_constraint¶
-
ruspy.estimation.mpec.
mpec_constraint
(maint_func, maint_func_dev, num_states, num_params, trans_mat, disc_fac, scale, gradient, result, mpec_params, grad)[source]¶ Calulate the constraint of MPEC.
- Parameters
- maint_func: func
- maint_func_dev: func
- num_states
python:int
The size of the state space.
- num_params
python:int
The number of parameters to be estimated.
- trans_mat
numpy.array
- disc_fac
numpy.float
see Discount factor
- scale
numpy.float
see Scale
- gradient
python:str
Indicates whether analytical or numerical gradient should be used.
- result
numpy.array
Contains the left hand side of the constraint minus the right hand side for the nlopt solver. This should be zero for the constraint to hold.
- mpec_params
numpy.array
see MPEC
- grad
numpy.array
, optional The gradient of the function. The default is np.array([]).
- Returns
- None.