Skip to content
Discussion options

You must be logged in to vote

Looking over this, I think I see the issue. You are using both Solver and Optimize, but these two types are independent of each other: using Optimize::minimize has no effect on the Solver::check and Solver::from_string has no effect on Optimize::minimize. Optimize itself is essentially a flavor of Solver, which also supports minimization/maximization. It has its own from_string and its own check. So for your code to work as intended, you should be doing the assertions and checking in the Optimize itself.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@danielrainer
Comment options

@toolCHAINZ
Comment options

Answer selected by danielrainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #331 on August 29, 2025 14:27.