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

Warm start does no longer work in 1.5.0 #289

Open
EmJay276 opened this issue Jan 29, 2025 · 2 comments
Open

Warm start does no longer work in 1.5.0 #289

EmJay276 opened this issue Jan 29, 2025 · 2 comments

Comments

@EmJay276
Copy link

I am solving my problen in a loop.
In a previous version (I don't know exactly which one it was June 2023) I was using the last result as the initial guess:

    if previous_res is not None:
        x1, info = nlp.solve(x0,
                             lagrange=previous_res['mult_g'],
                             zl=previous_res['mult_x_L'],
                             zu=previous_res['mult_x_U'])
    else:
        x1, info = nlp.solve(x0)

previous_res is identical to info, but this does no longer work and raises the exeption

    x1, info = nlp.solve(x=x0,
               ^^^^^^^^^^^^^^^
  File "cyipopt\\cython\\ipopt_wrapper.pyx", line 628, in ipopt_wrapper.Problem.solve
ValueError: operands could not be broadcast together with shapes (208,) (0,) 

Is warm start no longer supported?

@moorepants
Copy link
Collaborator

I just tried the tests for warm start from #271 in version 1.3.0, 1.4.1, 1.5.0, and the tip of master and it ran. I don't think anything has changed about warm starting other that adding the documentation.

You'll have to provide a full reproducer for more help.

@EmJay276
Copy link
Author

Ok that is really weird, I will investigate this and report again.
But it will take at least some weeks until I am able to test it again, sorry.

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

2 participants