CPLEX explicitly does not check for duplicate constraint or variable names since in the majority of cases this does not pose a problem.
There are two cases in which duplicate names create issues:
-
In an LP format file, duplicate variable names will cause trouble when the file is read: all variables with the same name will be merged into a single variable.
-
In an MPS format file, duplicate constraint names will cause trouble when the file is read: CPLEX will actually refuse to read the file, other solvers may do different things.
There may also be issues with MST, BAS, ORD, ... files in case you attempt to identify variables and/or constraints by name and there are duplicates.
From what you describe above, I am not clear how the duplicate constraint names could cause any trouble.
#CPLEXOptimizers#DecisionOptimization