Research Article

A Hybrid Programming Framework for Modeling and Solving Constraint Satisfaction and Optimization Problems

Algorithm 3

The list of new indices after transformation.
L_index_z=[[A,M1,1],      [A,M2,2],   [A,M3,3],   [A,M10,4],  [B,M1,5],[B,M5,6],
              [B,M8,7],  [C,M4,8],    [C,M9,9],   [D,M5,10], [D,M6,11], [D,M7,12],
              [D,M8,13],     [E,M1,14],  [E,M2,15], [E,M3,16], [E,M4,17], [F,M5,18],
              [F,M6,19],    [G,M3,20],  [G,M5,21], [G,M8,22], [H,M8,23], [H,M9,24],
              [H,M10,25],  [I,M6,26], [I,M7,27],  [I,M8,28],  [J,M4,29], [J,M5,30],
              [J,M6,31]
                ]