So basically I am modelling a hybrid PV-wind energy system. The main components effecting output are the number of PV arrays, the number of wind turbines and the number of batteries; nPV, nW and nB respectively.
So I want to run this using all possible combinations, eg 1-maxPv, 1-maxW and 1-maxB. I have the algorithm coded up to the point where the timestep t reaches the end. At which point it should then increase one of the parameters and run again.
I'm not sure what the best way to go about this would be. Would it be possible to construct a matrix of all the possible combinations and somehow use this in the loop for the nPV/nW/nB values at that instant? Or maybe a while loop which runs until all 3 values are at the max value (though I wouldn't be sure how I can code that without huge amount of if statements for each combination, and there's already a lot of ifs/elseifs in there already)
Any suggestions appreciated.