'Unexpected MATLAB Expression' error when making use of AC load, AC Gen, DC PV simulation  

  RSS
 Stef
(@stefcoetzee)
Active HOMER

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

Sincerely

Stef

ReplyQuote
Posted : March 27, 2017 8:03 am
 Stef
(@stefcoetzee)
Active HOMER

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

to:

simulation_state.primary_loads(1).load_served = simulation_state.ac_bus.load_served

The only change:

primary_load

to:

primary_loads

Thanks Aarabi!

ReplyQuote
Posted : March 28, 2017 11:56 pm
  
Working

Please Login or Register