Skip to content

Conversation

ctessum
Copy link
Contributor

@ctessum ctessum commented Jun 13, 2025

It seems like they are currently backward

It seems like they are currently backward
@ChrisRackauckas
Copy link
Member

@AayushSabharwal better test this?

@AayushSabharwal
Copy link
Member

I'm confused, because we have a test for this and it passes both before and after the swap on CI, but fails after swapping locally.

@AayushSabharwal
Copy link
Member

@ctessum how did you run into this? Are you using MTK.get_gui_metadata?

@ctessum
Copy link
Contributor Author

ctessum commented Jun 13, 2025

I don't have a specific case of it failing, I was just looking through the code and it seemed wrong.

@AayushSabharwal
Copy link
Member

AayushSabharwal commented Jun 13, 2025

I see. So the functions are identical, and because they were passed the correct arrays it worked. i.e. in the @costs case, it called parse_constraints! but passed it the costs array. Constructing the system thus worked fine, it's just that in the Model struct the values are backward.

@AayushSabharwal AayushSabharwal merged commit 70a00c5 into SciML:master Jun 17, 2025
39 of 49 checks passed
@ctessum ctessum deleted the patch-1 branch June 17, 2025 16:33
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.

3 participants