MILP problem which is a function of time
Show older comments
i have solved my MILP problem using intlinprog, that part was fine. I am now extending the same problem but now it is depedent on time (i.e. I was to solve the optimization problem for each hour time step).
my question is: How do I extend my objective function and constraints to be time depedent?
thank you
9 Comments
Ameer Hamza
on 14 Apr 2020
Which parameters of MILP change after each hour?
sibabalo noludwwe
on 14 Apr 2020
Ameer Hamza
on 14 Apr 2020
If the constraints change, then you can use a for loop to solve the optimization problem after each hour.
sibabalo noludwwe
on 14 Apr 2020
Ameer Hamza
on 14 Apr 2020
Since your constraints change, you are solving a new optimization problem. You may get some benefit by using the solution from the previous step as the initial guess for the next step.
Ameer Hamza
on 14 Apr 2020
sibabalo's comment moved here to keep the discussion organized.
Maybe i did not explain it properly. The constraints equations don't change. To be exact what changes are power values from PV,wind turbines and battery storage that used in the constraints.
Ameer Hamza
on 14 Apr 2020
MATLAB intlinprog function does not provide any option to deal with varying parameters. The only way I can think of is to feed the solution of the previous step as the initial guess. It will help the optimizer to converge quickly.
sibabalo noludwwe
on 14 Apr 2020
Ameer Hamza
on 14 Apr 2020
Please see my answer below for explanation.
Accepted Answer
More Answers (1)
sibabalo noludwwe
on 30 Apr 2020
0 votes
Categories
Find more on Improve Problem-Based Organization and Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!