cool -- sign(sdpvar) seems to be legal in YALMIP
about to delete some old experiments
added wastePower terms. reproduced Mehdi's results as a sanity check. now, back to making realistic batteries
hmm, isOverflow1 and Overflow1 are all NaN
aha, adding constraint with overflow term is encouraging system to shed more loads, since it seems to like maximizing the overflow
more milp experiments. kind of stuck
closer to having a usable battery
why does sum((~isOverflow1)*Overflow1') crash, while Lambda1 * Del1 is ok?
trying to simplify and debug at the same time -- want to explain where I'm stuck to Mehdi
batteries keep staying pretty highly charged now. that's a good sign. but, rewarding Beta is having the side effect of discouraging loads from using the batteries.
ready to send code to Mehdi