Given an m * n grid, each edge must be colored. However, there are 2 constraints:
- Entire grid must use only 3 unique colors
- Each square in the grid must be colored using exactly 2 colors (2 edges per color)
Let's try to build a GAMS model for this. The question itself is not so interesting, but the modeling for setting up these grids is.