How do I add time dependence to linprog
Show older comments
I am currently drafting a system for load scheduling according to a varying electricity price and power available from a PV system. This is my first time using linprog. I have managed to schedule charging and discharging of a battery to minimize cost defined by a cost function. I have included a load prediction, PV generation prediction and electricity price prediction (using existing data, for now). To allow time dependency, I divided the day into time slots with all equalities and inequalities defined separately for each time slot as well as dependencies over time slots (such as the state of charge of the battery). What I don't know how to do is scheduling of a load with a known load profile that cannot be changed or turned off once it is running. The only way that I have thought of is to run the linear optimization once for each time slot within the selected window with the load starting in a different time slot every time, basically brute forcing. But that's computationally intensive and won't work with a lot of loads due to the exponential increase in number of calculations for each additional load since ideally every possible combination should be evaluated. Is there any better way to do this?
Answers (1)
Alan Weiss
on 21 Mar 2016
0 votes
I am not sure that I fully understand your model, but I wonder if this example might be relevant. The example uses mixed-integer linear programming, which is different than your question, but might provide an answer to your question.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
1 Comment
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!