How to call nonlinear solver in MathOptInterface

Ipopt.Optimizer is correct.

In your example, you need to add some variables with MOI.add_variables(model, 5).

Note that it’s easier to help if you can provide a complete working example: Please read: make it easier to help you - #8. In this case, I don’t know what fun_objective is, or which packages you are using.