Closed jetuk closed 5 years ago
James, I think is not so important to save the losses, when I was checking the test I used the Deficit
recorders from pywr
to check them. However, If I wanted to save it in the future, do you use _save_basis
to save these values??
If I run the Ghana model, How can I check the running times??
@Jmiguel17 I'll make an issue about returning the losses data.
This is initial support for linear losses on the line nodes. It by default now adds two additional columns and two additional rows for each line. This could be made optional by only adding those columns & rows for lines that have a loss defined. Loss defaults to zero.
The columns represent the loss in each direction of each line. The rows are such that only one of these should be active (> 0) at any given time. I.e. the if the power flow is coming into the bus then the loss is non-zero, if it is leaving the bus (i.e. -ve) the loss is zero.
I've added a basic test that I think gives the correct results. The "flow" attribute on a line is the power flow prior to any losses. The losses themselves are currently not saved or returned from the solver.