'Unexpected MATLAB Expression' error when making use of AC load, AC Gen, DC PV simulation
Hi Forum members
I get a MATLAB error when executing the dispatch algorithm for the AC load, AC generator, DC PV simulation.
It states 'MATLAB error: Error: Unexpected MATLAB expression' in HOMER, but does not specify a file name or line number. This makes it hard to debug.
I've gone through the dispatch algorithm file, but could not find any obvious logical errors.
Can someone please verify that this simulation is functional on their system?
Thanks for your support
The HOMER support staff came to the rescue on this one.
On line 99 of the dispatch algorithm, change:
simulation_state.primary_load(1).load_served = simulation_state.ac_bus.load_served
simulation_state.primary_loads(1).load_served = simulation_state.ac_bus.load_served
The only change: