GA optimization

1 回表示 (過去 30 日間)
Malathy
Malathy 2012 年 3 月 1 日
objFcn = @(x) - sim(net,x);
[xOpt,Fval] = ga(objFcn,3);
Output of my GA is given as below:
My Fval = -30.5182 & xOpt = [0.1386 0.0839 0.2135 0.5449 ]
Does it mean that for my experiment the GA optimized input values are given by x and its corresponding output is Fval. My output cannot be -ve and the input values are also very low.

採用された回答

Walter Roberson
Walter Roberson 2012 年 3 月 1 日
Optimization is usually expressed as looking for the minimum value. Looking for the minimum of the negative of a function is equivalent to looking for the maximum of the function.
The optimized minimum is -30.5182 but that is the optimization of the negative of the function, so the optimized maximum is 30.5182
The low value of the input values is something we do not have enough information to comment about.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDirect Search についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by