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

interface of correspond() #2

Closed chkwon closed 8 years ago

chkwon commented 8 years ago

current form:

correspond(m, lb, x, ub, F)

suggestion:

@defVar(m, lb <= x <=ub)
correspond(m, F, x)

lb and ub are handled inside of correspond(). It should allow no bound, or one-side bound cases.