SpineOpt.jl icon indicating copy to clipboard operation
SpineOpt.jl copied to clipboard

Updating variables takes time

Open DillonJ opened this issue 1 year ago • 5 comments

I have a model with 500 nodes and 700 branches. It's performs pretty well considering but it takes 30 seconds per window at "updating variables". Feels like we should be able to do better?

Any thoughts @manuelma

DillonJ avatar Mar 02 '23 16:03 DillonJ

contingency_is_binding?

manuelma avatar Mar 03 '23 08:03 manuelma

No, with LODF constraint active

DillonJ avatar Mar 03 '23 09:03 DillonJ

Yeah, sorry, contingency is binding has nothing to do with updating variables.

Updating variables at the moment is fixing the history after rolling (to the results of the last solve) and also fixing values and restoring lower and upper bounds.

I think I can make it faster, I have some work on a branch but need to test it before merging into master.

manuelma avatar Mar 03 '23 11:03 manuelma

That branch is already merged. I was testing it with a model where it took 4 seconds per window to 'update variables' - but it was 5 seconds before merging, so either @DillonJ 's model was taking 30 seconds because of other issues of because it's just larger...

manuelma avatar Mar 28 '23 11:03 manuelma

@DillonJ Is this still an active Issue? If so, can we maybe pinpoint what's slow and/or give some ideas on how to speed it up?

clizbe avatar Jan 04 '24 16:01 clizbe