I created a simple model for an off-grid neighborhood its energy balance, based on solar, wind and some energy storage. I use PSO to find the minimum required solar and wind capacity required for no loss of power throughout a full year.
More capacity is more cost, so the cost is minimized. Candidate solutions where there is loss of power should not be considered as solutions. Could you advice me on how to implement the no loss of power criteria?
What I did now is: when a configuration results in loss of power, I assign that candidate solution a high cost. This seems to work, but is not what you would call, very elegant...