Skip to content

Fix optimizer subsref warmstart bug - #1528

Open
tholden wants to merge 1 commit into
yalmip:developfrom
tholden:fix-subsref-warmstart
Open

Fix optimizer subsref warmstart bug#1528
tholden wants to merge 1 commit into
yalmip:developfrom
tholden:fix-subsref-warmstart

Conversation

@tholden

@tholden tholden commented May 29, 2026

Copy link
Copy Markdown
Contributor

The following PR was generated by AI. It seems reasonable to me but it probably warrants additional scrutiny. AI text follows:

When partially instantiating an optimizer object, the lastsolution array was not being updated to remove the eliminated parameters, which resulted in a corrupted warm start for subsequent solver calls. This PR fixes the issue by slicing lastsolution using keptvariablesIndex.

@tholden
tholden marked this pull request as ready for review May 29, 2026 09:18
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

Successfully merging this pull request may close these issues.

1 participant