ebertolazzi / mexIPOPT

MATLAB interface for IPOPT
108 stars 25 forks source link

Couldn't use finite-difference gradient and jacobian approximation #20

Closed myozinaung closed 1 year ago

myozinaung commented 1 year ago

I found the options to use finite-difference gradient and jacobian in the following link. https://coin-or.github.io/Ipopt/OPTIONS.html

I try to use those options like this:

options.nlp.jacobian_approximation = 'finite-difference-values'; options.nlp.gradient_approximation = 'finite-difference-values';

or

options.ipopt.jacobian_approximation = 'finite-difference-values'; options.ipopt.gradient_approximation = 'finite-difference-values';

But they don't seem to work.

ebertolazzi commented 1 year ago

probably depend on IPOPT library.