<div>Hi Edson:</div><div><br></div><div>Thank you for your answer, It is very useful. Please, let me explain in more details my problem. I am working in a very big optimization problem, but in order to simplify I have created a reduced example for test in my laptop. I have implemented my problem in Matlab and IPopt with C++ for checking the results. I have compared the results obtained for each method (functional/constraint evaluation, gradient of the functional/constraint and hessian of the functional) for matlab and Ipopt, which are the same. However, in matlab the minimum of the functional is achieved in 20 iterations, while in C++ the iterations do not converge and execute a lot of iterations.</div>
<div><br></div><div>Please, could you give me any suggestion? </div><div>Best regrads </div><div>Juan Carlos</div>