Closed shma1 closed 7 years ago
If you have discrete/integer values for your decision variables, you have two options:
type = "binary"
search by encoding your decision variables as binary valuestype = "real-valued"
by encoding your decision variables as floating-point values in a specified range and apply some repairing to convert the values to integers. For an example of both approaches see Section 4.6 of the following paper
Best,
Luca
What changes are to be made so that the input parameters are considered to be discrete/integer values.
Something needs to be changed in: ga(type = c("binary", "real-valued", "permutation"), min, max, nBits, fitness, ..., ) to make the algo take in only integer/ discrete parameters. I have four discrete params.
I cant figure it out :( Thanks..