当前位置:网站首页>[optimization model] Monte Carlo method of optimization calculation

[optimization model] Monte Carlo method of optimization calculation

2022-07-06 03:37:00 Embedded workplace

Stochastic simulation is often used to solve global optimization problems . Find the maximum value of the following function .

 

For the sake of understanding , Let's draw first :

clear;
close;
x=linspace(-2*pi,2*pi);
f=(1-x.^3).*sin(3*x);plot(x,f)

  It can be seen that the function is -6

原网站

版权声明
本文为[Embedded workplace]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202132314231489.html