I am using the genetic algorithm function "ga()" in MATLAB to optimize operating parameters of a Simulink model.
The decision variables are several parameters of the Simulink model. The output of the fitness function is calculated by the Simulink model (The function "sim ()" is applied in the fitness function to simulate the model, and then the fitness function choose the output value of the model as the output for fitness evaluation).
Here is the fitness function:
And here is the Simulink model:
However, the optimization process will be very time-consuming as the model simulation of each individual in a generation is in serial. I wonder if it is possible to accelerate the process by simulating the model of each individual in parallel by the Parallel Computing Toolbox?
I am very grateful if you can answer my question or give me some suggestions!