Commit 8a08824
authored
Fix non implemented case in LinearExpression class (#724)
Operation `Float * LinearExpression` is not implemented and caused a stack recursion error `"maximum recursion depth exceeded"`.
This PR changes to the equivalent `LinearExpression * Float` which calls LinearExpression.__mul__ that can handle floats.
## Summary by CodeRabbit
* **Bug Fixes**
* Fixed scalar multiplication operations on linear expressions to deliver correct mathematical results in linear programming problems.
<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>
Authors:
- Hugo Linsenmaier (https://github.com/hlinsen)
Approvers:
- Ishika Roy (https://github.com/Iroy30)
URL: #7241 parent 3a9a37d commit 8a08824
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
| |||
0 commit comments