请教关于优化函数gamultiobj里参数设置的问题。
5 views (last 30 days)
Show older comments
果博东方开户咨询【微8785092】
on 23 May 2023
Answered: 果博东方现场客服【微8785092】
on 23 May 2023
gamultiobj函数的调用格式为[x,fval] = gamultiobj(fitnessfcn,nvars, A,b,Aeq,beq,lb,ub,options),我这里想将给定的X设定成只能取整数0、1,之前看了ga(……,……,……)函数的参数设置主要是靠intcon来控制x(i)是否为整数,
但是在pareto多目标优化里,matlab的gamultiobj(……,……,……)函数中,没有intcon输入,请问该如何设定参数控制?
0 Comments
Accepted Answer
果博东方现场客服【微8785092】
on 23 May 2023
gamultiobj 不支持整数优化。可以:
1、更改目标函数,例如取整(fix、round之类。对于0-1,也可以约束[0 1],之后判断x各个变量是否大于0.5。)可能不能很好达到。
2、目标函数数目少的话,自己化为单个后 用ga。得到帕累托面
其他:自行编码。。。。
0 Comments
More Answers (0)
See Also
Categories
Find more on Multiobjective Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!