I want to maximise a linear objective function, but 2 of the variables are time dependent with discrete values.
Essentially, the problem involves maximising revenues using batteries to store electricity from the grid and then sell it at a later time. So the electricity spot market price will vary with time. Later, I also have to incorporate the battery system with solar panels, so the power output will also vary with time. I want to optimise the charging schedule to generate the most profit.
I can express everything linearly, but after reading some examples on the kind of problems you can solve with the optimisation toolbox, none had variables that change depending on the time like the spot market prices. Is't possible to adapt my problem and solve it using linear programming?