A julia package built on top of NLPModels for providing the functions needed to build solvers for Mathematical Programs with Complementarity Constraints.
To install MPCCModels, simply proceed to
pkg> add https://github.com/MadNLP/MPCCModels.jlMPCCModels takes as input an AbstractNLPModel from NLPModels, with ind_x1 (resp. ind_x2) the indices of the variables appearing in the left-hand complementarity (resp. right-hand complementarity):
using NLPModels,MPCCModels
nlp = create_your_nlp_model()
mpcc = MPCCModel(nlp, ind_x1, ind_x2)