mono- objective optimization and multiopjective optimisation, I would like to use GA with option but there is a fault that I can’t to resolve
objective = @(x) 1.002 – ((1 – exp(-0.00003 * x)) ./ (0.00003 * (x + 1.5) + 0.00063 * (1 – exp(-0.00003 * x))));
[a,b]=[24:720];
options = optimoptions(‘ga’, ‘PopulationSize’, 50, ‘MaxGenerations’, 100, ‘Display’, ‘iter’);
[x_opt, fval] = ga(objective, 1, [], [], [], [], a, b, [], options);
disp(‘Résultat optimal :’);
the results are:
??? Undefined function or method ‘optimoptions’ for input arguments of type ‘char’.
Error in ==> obj_1 at 10
options = optimoptions(‘ga’, ‘PopulationSize’, 50, ‘MaxGenerations’, 100, ‘Display’, ‘iter’);objective = @(x) 1.002 – ((1 – exp(-0.00003 * x)) ./ (0.00003 * (x + 1.5) + 0.00063 * (1 – exp(-0.00003 * x))));
[a,b]=[24:720];
options = optimoptions(‘ga’, ‘PopulationSize’, 50, ‘MaxGenerations’, 100, ‘Display’, ‘iter’);
[x_opt, fval] = ga(objective, 1, [], [], [], [], a, b, [], options);
disp(‘Résultat optimal :’);
the results are:
??? Undefined function or method ‘optimoptions’ for input arguments of type ‘char’.
Error in ==> obj_1 at 10
options = optimoptions(‘ga’, ‘PopulationSize’, 50, ‘MaxGenerations’, 100, ‘Display’, ‘iter’); objective = @(x) 1.002 – ((1 – exp(-0.00003 * x)) ./ (0.00003 * (x + 1.5) + 0.00063 * (1 – exp(-0.00003 * x))));
[a,b]=[24:720];
options = optimoptions(‘ga’, ‘PopulationSize’, 50, ‘MaxGenerations’, 100, ‘Display’, ‘iter’);
[x_opt, fval] = ga(objective, 1, [], [], [], [], a, b, [], options);
disp(‘Résultat optimal :’);
the results are:
??? Undefined function or method ‘optimoptions’ for input arguments of type ‘char’.
Error in ==> obj_1 at 10
options = optimoptions(‘ga’, ‘PopulationSize’, 50, ‘MaxGenerations’, 100, ‘Display’, ‘iter’); optimization, genetic algorithm MATLAB Answers — New Questions