## MATLAB: Genetic Algorithm Tool Question.

gagenetic algorithmMATLAB and Simulink Student Suiteoptimization

I’m going to oversimplify my problem so that you know exactly what I am trying to figure out. So say you have an array of a few numbers and you have an extremely long code that does a bunch of operations on this array and returns three values. So I want ga to change the values in the array to minimize the three output values. How do I go about doing this? Changing the array values at the beginning of the code to minimize three outputs at the end of the code. Thanks!

## Best Answer