Unable to use lagrange to solve 2 varable functions in modeling toolkit

I’ll reiterate my suggestion to use JuMP instead: