3遺传算法的MATLAB实现实例.docxVIP

  • 8
  • 0
  • 约2.03千字
  • 约 6页
  • 2017-01-19 发布于重庆
  • 举报
3遺传算法的MATLAB实现实例

遗传算法(Genetic Algorithm)的MATLAB应用实例To use Optimization Toolbox software, you need to 1 Define your objective function in the MATLAB language, as a function file or anonymous function. 2 Define your constraint(s) as a separate file or anonymous function.首先建立目标函数的M文件;例1:如目标函数 min 100()+ ;Function File for Objective FunctionA function file is a text file containing MATLAB commands with the extension .m. Create a new function file in any text editor, or use the built-in MATLAB Editor as follows:(1)At the command line enter:edit (想要建立的.m文件的文件名)The MATLAB Editor opens.(2) In the editor enter:function

文档评论(0)

1亿VIP精品文档

相关文档