The simple de-commitment heuristic implemented in uopf() and used by runuopf() does not take into account the SHUTDOWN cost in column 3 of the gencost matrix. However, it should be pretty straightforward to add it. Have you looked at the code in uopf.m <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/uopf.html>?
I’d be happy to consider including the feature if you implement it. If you are only interested in DC OPF, then you can use MOST and it will consider both STARTUP and SHUTDOWN costs. Have a look at Section 7.1.3 in the MOST User’s Manual <http://www.pserc.cornell.edu/matpower/docs/MOST-manual-1.0.pdf> for an example. Ray > On Apr 17, 2018, at 6:35 AM, Lucie NICOLAS > <[email protected]> wrote: > > Hello everybody > > I'm working about optimal power flow and I have diffrent costs to implement. > I would like to be abble to shut down generators (Pmin = 5MW) if it is > interesting. I've read that using runuopf is the best option to allow > Matpower to shut down some generators. > But I would like to implement a cost for that. Unfortunatly, I've read that > the columns 2 and 3 of gencost are not used by any function of Matpower. > > Does it exist a simple way to associate the cost to shutting down the > generator ? > > Kind regards, > Lucie
