Info
この質問は閉じられています。 編集または回答するには再度開いてください。
This code is working but in every run i am getting different value of x(1),x(2) and x(3)..kindly solve this problem...its very urgent
1 回表示 (過去 30 日間)
古いコメントを表示
xdata =[ 10.^(-5) 10.^(-4) 10.^(-3) 10.^(-2) 10.^(-1) 1] ;
ydata=(0.2575./((xdata.^2)+(0.333.*xdata)+1));
parameterized_objective = @(x,xdata) x(1)./((x(2).*(xdata.^(1+0.9))) + x(3).*(xdata.^(0.9))+1);
ObjectiveFunction = @(x) sum((parameterized_objective(x,xdata) - ydata).^2);
X0 = [0; 0; 0 ];
lb = [0.2; 0.2; 0.2];
ub = [1; 1; 1];
x = simulannealbnd(ObjectiveFunction, X0, lb, ub)
1 件のコメント
回答 (1 件)
the cyclist
2018 年 5 月 18 日
Simulated annealing uses randomness as part of the algorithm. If you set the random seed before this code, for example with the line
rng default
then you should get reproducible results.
1 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!