Skip to content
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

Help me re-use the pwork struct,please! #190

Open
pbpf opened this issue Sep 28, 2020 · 0 comments
Open

Help me re-use the pwork struct,please! #190

pbpf opened this issue Sep 28, 2020 · 0 comments

Comments

@pbpf
Copy link

pbpf commented Sep 28, 2020

Hello guys, I need to solve a bunch of second-order cone optimization problems with same constraints. Since their objective functions just slight different to each other , it is a natural idea to take the result of the previous solution as the initial value of the next one, so I tried to reuse the pwork structure and cancel the initialization.

what I want is something like this:

x1=ecos_solve_first(pwork);//
update c1->c2
x2=ecos_solve_next(pwork);// very fast
update c2->c3
x3=ecos_solve_next(pwork);// very fast
.....
I may have broken some internal relationships in the pwork structure through what I have done, the result could not converge,please tell me what needs to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant