Gurobi / gurobi-optimods

Data-driven APIs for common optimization tasks
https://gurobi-optimods.readthedocs.io
Apache License 2.0
153 stars 32 forks source link

Fix numpy and scipy incompatibilities #149

Closed simonbowly closed 5 months ago

simonbowly commented 5 months ago

Fixes #148

Adjusts for functions removed in the latest numpy and scipy releases.

simonbowly commented 5 months ago

@torressa does https://github.com/Gurobi/gurobi-optimods/pull/149/commits/b019e9a4743cbe67ac53e3e63f565de0b5a9f8d3 look ok to you? It seems to be the recommended fix as getrow was removed in scipy 1.14.

simonbowly commented 5 months ago

Now I just have the fun of getting those broken doctests working :-(

simonbowly commented 5 months ago

Doctests fixed with 784c3bd. It makes the code examples a little wordier but should be more robust.