Add .value() method for expression evaluation and refactor variable retrieval#3
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tency across examples
|
While writing the A fix is ready on |
SteveDiamond
left a comment
There was a problem hiding this comment.
Thanks for fixing!
|
Let's do the second fix as a follow up. |
|
Actually could you get the CI passing? Some minor issues. |
|
The lint is now fixed but the MSRV error is because the latest zmij and also quote does not support rust 1.70, shall we bump the MSRV to 1.71 or cap the zmij version (< 1.0.21)? |
Lets bump MSRV to 1.71 |
Summary
This PR closes #1.
Expr::value(&solution)to evaluate any expression — variables, sub-expressions, or composite atoms — at anoptimal solution
Index<(usize, usize)>forArrayto enable naturalresult[(row, col)]indexing on returned values.value()for variable retrieval;least_squaresdemonstrates both&solution[&var]andvar.value(&solution)as equivalent APIs