Turn on the data check parameter
Suggests a parameter to improve quality of data.
Whenever an application behaves unexpectedly, consider
turning on the CPLEX data consistency checking and modeling assistance (DataCheck or CPX_PARAM_DATACHECK).
When this parameter is turned on, CPLEX performs additional checking
to verify whether arguments that are arrays actually contain valid
data, such as indices within range, no duplicate entries, valid row
sense indicators, and valid numeric values. Though these checks are
probably too costly for deployed applications, they can be very useful
during development.