MATLAB: GA optimization with predefined variable

genetic algorithmoptimization

Hi, I want to build Genetic algorithm but I dont want it to search all the values of the variables. like x1=[1 2 3] & x2=[3 4 5]. I want to built my minimization based on these values instead of searching all possible values. How can I do that?? Thank you in advance.
Related Question