SciML / Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface.
https://docs.sciml.ai/Optimization/stable/
MIT License
711 stars 79 forks source link

Missing parameters in call to `instantiate_function` #559

Closed baggepinnen closed 1 year ago

baggepinnen commented 1 year ago

I believe this line is missing the p parameter argument as the second last argument, which is present for all other calls to instantiate_function https://github.com/SciML/Optimization.jl/blob/ed32f42862b13465bf9fc5ee72c153710b00585a/lib/OptimizationMOI/src/nlp.jl#L108

I noticed this since I got num_cons as parameter in my user-defined functions

Vaibhavdixit02 commented 1 year ago

I noticed this since I got num_cons as parameter in my user-defined functions

Can you show a MWE of what you mean by this?