-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When we added the code for the dispatch optimisation, we didn't add unit tests, partly because of time constraints but also because it's not obvious exactly what the best way to write tests for the optimisation code is. It would be nice, for example, to check that under condition X, constraints Y will be added. This would be dead easy in Python -- you could just mock all the functions -- but sadly this is an inherently harder problem with statically typed languages.
I see two ways we could approach this:
- Read e.g. row values back out of the
highs::RowProblem-- although this part of the C API is not wrapped by the Rust crate yet, so we'd probably have to add it - Write a mock solver, either manually or with help from a library (
mockallseems to be popular, though I've not used it)
I'm leaning towards the second, because it gels nicely with #447 -- we'd need to write traits for solver code for that anyway.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🔖 Ready