I have a model with many nonlinear expressions and I would like to evaluate these to test my model.
For example I have something like this
using JuMP
m = Model()
@variable(m,x)
@NLexpression(m,T,x^2)
#What is T(x=2)?
I’m writing an MCP model using the Complementarity package and a really useful model debugging technique is to evaluate the equations (NLexpressions in this case) at a solution point.
The first argument takes a JuMP variable name, and returns a value. So essentially the Dict can contain several variables and other ways are legit, as long as they return a value.