-
Hi Julian, I'm using Pymoo for the first time to solve a vehicle routing problem (VRP) of maintenance scheduling. I initially formulated my problem using Mixed Integer Programming (MIP) but I found it impractical for solving this problem using an exact methods. That's why I'm using Pymoo right now. Till now, I was able to formulate a mini problem but I need a help on the conceptual part of the problem. My model includes binary decision variables with max 4 indices & some continuous variables. Currently, I'm using the same definition of the variables in MIP but I do have feeling that there is a better way for defining the variables in Pymoo. For example (Xijkt) it is binary decision variable equal to 1 if a team k will move from location i to location j in day t. So, I'm using reshape function to reshape Pymoo variable (X) into 4 indices (Xijkt). So, in principle, do I need to use the same concept of MIP in formulating my problem in Pymoo ? if not, could you please give me some other options? Here is the things I need to get from the solution:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi ZaRiyam, Yes, MILP and genetic algorithms might approach optimization problems very differently. For mixed variables problems, I recommend having a look at customization. The information about your problem is not sufficient to give a direct answer to your question. But I recommend first thinking about the genotype representation and the operators. Keep in mind that the GA approach is different. For instance, for the TSP problem where you intend actually trying to find a permutation (let us say of length |
Beta Was this translation helpful? Give feedback.
Hi ZaRiyam,
Yes, MILP and genetic algorithms might approach optimization problems very differently.
For mixed variables problems, I recommend having a look at customization.
I have written an example for subset selection: https://pymoo.org/customization/subset.html
Basically, you define your own operators (sampling, crossover, mutation) that operate on the genotype.
The information about your problem is not sufficient to give a direct answer to your question. But I recommend first thinking about the genotype representation and the operators.
Keep in mind that the GA approach is different. For instance, for the TSP problem where you intend actually trying to find a permutation (let us say …