R: GA package Discrete input parameters

Viewed 310

What changes are to be made so that the input parameters are considered to be discrete/integer values?

Making high penalties in the fitness function is not the right option as it becomes a part of the iterative process. skipping the non-integer values is again a part of iterative process. Something needs to be changed in:

ga(type = c("binary", "real-valued", "permutation"), min, max, nBits, fitness, ..., )

to make the function take in only integer/ discrete parameters. I have four discrete params.

Same problem would come up with MINLP problems.

I cant figure it out :( Thanks..

0 Answers
Related