Any solution for 'OutputTimes' are not supported by fixed step solvers ('ode5'). The first and last elements of TIMESPAN are being used as the start and stop times.
Show older comments
Hello I am trying to optimize cost of energy consumption by varying the times of the day in minutes between 0 and 1440. I have the code: options = simset ('solver','ode5','SrcWorkspace','current'); [tout] = sim('EnergyMdl',[0 1440],options); I have 3 initial time values and i expect three outputs (x,y,z) when i run the optimization. However, am getting the error below: 'OutputTimes' are not supported by fixed step solvers ('ode5'). The first and last elements of TIMESPAN are being used as the start and stop times. All other elements are being ignored Could you please assist or advise me on the solver or any trick to solve this. Am kinda stalk. Chris
Answers (0)
Categories
Find more on Symbolic Math Toolbox 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!