chkwon / Complementarity.jl

provides a modeling interface for mixed complementarity problems (MCP) and math programs with equilibrium problems (MPEC) via JuMP
Other
75 stars 20 forks source link

Questions of using complementarity.jl to build the computable general equilibrium model #68

Closed KennethAnn closed 1 year ago

KennethAnn commented 1 year ago

Dear Professor Kwon, I am now using complementarity.jl to build a computable general equilibrium (CGE) model, which is in general established in GAMS software. A question is whether the NLconstraint can be used in MCPModel(), since I want to combine the nonlinear equations and MCP structure together.

chkwon commented 1 year ago

@mapping is just an alias of @NLexpression. You can use nonlinear terms in @mapping. You cannot use @NLconstraint.

KennethAnn commented 1 year ago

Thanks. I am curious about the model structure interface whether it could print the real value of each @mapping when I print the model. To do so, I can directly obtain the value of subexpressions, which could be benefit for checking the balance of equations. image