-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement WORHP as a solver #107
Comments
WORHP-extension has been created in Morenet project and is called in createLocalSolvers.m Notice that it is a prototype and only avaliable for small-scale least-squares problem currently. More detailed information would be described in issue 26 in Morenet project |
@alexe15 The Hessian (vector) issue by using worhp has been solved. |
Now, worhp work fine for both feasibility (eqaulity constrained) and least-sqaures (unconstrained) problem in morenet project. It shows a comparable shorter running time than CasADi, especially when problem size is large. To solve inequality constrained problem, more modification is needed in worhp-matlab interface. |
Hey Xinliang, that sounds great, nice work! How did you do it in the end? With sparsity detection as we discussed? |
Yes, first use sparsity detection and then I have 2 small modifications. Order of Hessian ElementsI read worhp manual in detail and found something I missed last time:
So the correct order of elements should be:
Matlab Function-handleThe second modification is to simply the calling function wCallback.hm = @(x)build_Hess_vector(Hess.Func, x, ...); where Now, the wCallback.hm = @(x)build_Hess_vector(Hess.Func(x)...); Instead of a function-handle, the input is a numerical matrix. After both modifications, worhp works for both problem formulations in Morenet. In the following is the simulation results of least-squares problem: I'm updating the report. I can send it to you if you wanna have a look. @alexe15 |
That's very nice to see! Great job! Do you have any feeling @Alexdaijlu for why |
@timueh
As we discussed in issue 26, hessian of least-squares problem could be approximated by Jacobian and becomes more accurate when
PS: worhp also has great potential in solving large-scale problem. |
Currently, we support casadi with ipopt and fmincon as solvers on the
abstractify
branch. Once #105 has been taken care of, @Alexdaijlu takes care of adding worhp.The text was updated successfully, but these errors were encountered: