Closed Foggalong closed 5 months ago
I don't know Python well enough to comment. My only related observation is that when the solution etc is obtained from HiGHS, it's not returned as a list - which is why it can be slow to access componentwise, and better to convert into a list first.
Yeah this is mostly on input where I've noticed it could be a bottleneck, rather than output. Especially in the robust problem, the NumPy type outputs will probably stay just because they're used iteratively as part of matrix operations.
There are a lot of places where HiGHS only asks for a list, but we're giving it a NumPy array simply because that's what Gurobi wanted. There'll be some space and speed savings if we stick to lists where possible, especially in sparse matrix definitions.