How to set the variables as integers in a Genetic Algorithm Function?

32 次查看(过去 30 天)
Hi,
Supposing the objective function is @(x)f(x(1),x(2)). I would like to set the variable 'x' as a integer in a Genetic Algorithm Function.
How should I do? Is there anyone knowing it?
Thanks, Zheng

采纳的回答

Walter Roberson
Walter Roberson 2012-7-7
编辑:Walter Roberson 2015-2-27
Note that there are a number of restrictions on ga()'s operation when you constrain to integer.
  9 个评论
Pratik Anandpara
Pratik Anandpara 2017-3-22
how to set it in ga boundry value only in integer lb=[100 1] ub=[500 50]
i want upper and lower boundry value only in integer not in decimal point

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by