Open joaquimg opened 5 days ago
There are a couple of places I think might cause this:
Dict
s in storing JuMP variable and constraint references, as well as other stuff like temporal and stochastic structure information. Essentially anything we store in m.ext[:spineopt]
. However, I'm not sure if/how this stuff impacts the JuMP model m
generation directly.
I am running the
main.jl
script in this PR https://github.com/jump-dev/open-energy-modeling-benchmarks/pull/38Every time I run it, I get a different mps file.
Rows are certainly and non-deterministic order:
This might be due to many reasons:
Dict
(or some other collection that does not preserve ordering).OrderedDict
fromOrderedCollection
is slower for some operations but preserves the order.Even if the only issue is order, the models might have heavily varying solution times and might be difficult to debug.
Deterministic behavior would be ideal here.