How can I use GA(Genetic Algorithm) with values of x1, x2, f(x1, x2)?

1 view (last 30 days)
A function(@objective_function) is required when using most GA. For example
[Xr,fval,exitflag,output,population,scores] = ga(@objective_function, nvars, [], [], [], [], lb, ub)
when I don't know the function and only have x1, x2, f(x1,x2) values, how do you run GA?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!