matlab将数扩大为整数,在Matlab中使用遗传算法时如何设置整数约束?(How to set the integer constraints when use the Genetic Algor…
在Matlab中使用遗传算法时如何设置整数约束?(How to set the integer constraints when use the Genetic Algorithm in Matlab?) 如果有人能告诉我如何设置变量的整数约束(即,它们的变量只能是0或1),我将不胜感激。 x = ga(fitnessfcn,nvars); It would be much appreciated…