首页 > 编程语言 >遗传算法与直接搜索

遗传算法与直接搜索

时间:2024-10-11 19:33:53浏览次数:1  
标签:help fval nvars 搜索 ga 遗传算法 直接

遗传算法

[x, fval] = ga(@fitnessfun, nvars, A, b, Aeq, beq, LB, UB, @nonlcon, options)
%x和fval为变量的值和目标函数的值
%ga函数内部的参数与非线性规划函数的意义一样,nvars为变量数。

直接搜索

[x, fval] = patternsearch(@fun, nvars, A, b, Aeq, beq, LB, UB, @nonlcon, options)
%意义同上

标签:help,fval,nvars,搜索,ga,遗传算法,直接
From: https://www.cnblogs.com/cxy1114blog/p/18459118

相关文章