Closed Simpleton123 closed 4 years ago
What happens if you set the start values to the optimal MATLAB solution?
Closing as stale. Ipopt assumes, among other things, that your problem is convex. You should only expect to find a locally optimal solution.
I need to find the solution (x,y) to minimize a function. I choose trust-region-reflective algorithm on MATLAB, find the optimal solution is (1.45392043849310, 2.22057922774844e-14), and objective = -652.457827998786. Then I choose Ipopt algorithm on Julia, with the same initialized value (0.948683298050514, 0.500000000000000), same constraints and same tolerance = 1e-9, but algorithm stops, optimal solution is (0.948683638232005, 0.500), and objective = -600.58335. Since on MATLAB, I can call fmincon function, which can use gradient and also hessian of function. But on Julia, there is an information that hessian can not be used for multi-variable optimization, so I only use gradient. This is different between two code. Could someone help me with this problem? Thanks!!!
Julia code is as following:
Optimal report is as following: