rwl / PYPOWER

Port of MATPOWER to Python
http://rwl.github.io/PYPOWER/api/
Other
329 stars 110 forks source link

How to warm start an AC OPF solution? #83

Open viktor-ktorvi opened 7 months ago

viktor-ktorvi commented 7 months ago

Hi,

I'm trying to warm start a solution, but it doesn't seem to have any effect

warm_started_ppc = runopf(warm_ppc, ppopt=ppopt)

What I've done is set all the variables in the bus and gen table with a warm solution thinking that the solver will start from there. However, when measuring the time to solve the ppc now, I get the same time no matter what I put in the warm_ppc, be it a sollved opf or zeros or anything else, it's like it has no effect.

What is the correct way to warm start a ppc for an AC OPF solution?

Thanks!