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

1 回表示 (過去 30 日間)
민제 강
민제 강 2021 年 7 月 7 日
回答済み: Gagan Agarwal 2024 年 4 月 29 日
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?

回答 (1 件)

Gagan Agarwal
Gagan Agarwal 2024 年 4 月 29 日
Hi,
In scenarios where only a set of data points is available without an explicit Objective function, a common approach is to create an interpolating or approximating function that captures these data points and that function now can be used as the objective function for the Genetic Algorithm.
I hope this helps!

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by