The model was implemented in C#. We chose the Cplex 12.12 solver to maximize our model.
We create similarity matrix.
We compute the similarity values
We compute the constants
We create the matching variables
We create the objective function
We create the constraints
See the code below . It is not all the code but we focus on the important parts
The full source code is available on my gitlab : https://gitlab.com/romain.raveaux/a-single-model-for-ged-and-gm
That's it !!!
The model is made.