Objective function for Simulated Annealing from Neural network
1 次查看(过去 30 天)
显示 更早的评论
Hi All,
I have created a neural network in Matlab which studies the input design parameters of an airfoil (8 parameters) and returns the value 'f' reasonably close to the value obtained through heavy computer simulations (CFD). Now I need to use the optimtool to get the f value close to '0' and the corresponding 8 parameter values that gives the f value close to 0.
But in optimtool, it asks for an objective function and I suppose the objective function in my case will be the neural network. But I am unable to find out what shall I give the objective function as. Can anyone please help or advise?
Thank you!
1 个评论
Anurag Trivedi
2016-10-3
编辑:Greg Heath
2016-10-4
Following code uses neural network as objective function for simulated annealing:
for i=1:5;
ObjectiveFunction = @(x) sim(net{22,3}, x);
p1 = [30.00;20.30;737;1000;0.20;]; //(starting point for the algo)
lb = [0 16.80 713 884 0.1];
ub = [100 22.90 762 1100 0.7];
[x,fval,exitFlag,output] = simulannealbnd(ObjectiveFunction,p1,lb,ub);
XX(1:5,i)=x;
FVALL(1,i)=fval;
end;
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!