Dear all,
Thanks for providing and maintaining this great tool! I've started two days ago and am already impressed by it's flexibility.
I would like to solve an optimization problem where the decision variables are p lists of n points with coordinates x and y each. Concretely, the individual's structure is supposed to look like:
[[x_11, y_11], [x_12, y_12], ... [x_1n, y_1n],
[x_21, y_21], [x_22, y_22], ... [x_2n, y_2n],
....
[x_p1, y_p1], [x_p2, y_p2], ... [x_pn, y_pn]]
Currently I've successfully implemented an individual with the first row structure, i.e.
[[x_11, y_11], [x_12, y_12], ... [x_1n, y_1n]]
via:
toolbox.register("attr_x", random.uniform, 0, x_dim)
toolbox.register("attr_y", random.uniform, 0, y_dim)
toolbox.register("individual", tools.initCycle, creator.Individual,
(toolbox.attr_x, toolbox.attr_y), n)
Question: How can I extend the individual's structure to the p-dimension?
Best,
Julian