I am just not able to figure out how to use ga()
of GA package in R.
Let me give an example of what I am trying to do.
I want to get the best order in which pizzas should be displayed to a customer to maximize the chances of selling all of them.
Let us say, I have 3 pizzas, "pizza1", "pizza2", "pizz3"
. For each order (there are 3! orders possible for this problem) I calculate some fitness using say, fitness(order)
function which returns some numeric value.
I want to implement this whole thing on a very large scale.
Could someone please help me setting up the parameters of ga() function.
Here is what I am trying
library(GA)
algo <- ga(type = "permutation", fitness = fitness, min= ?, max= ?, maxiter = ?)
Can someone help me setup min, max and maxiter and popsize parameters for this problem and what would they mean specifically for my problem in layman terms?