You are seemingly right, here the actual task: I use CPLEX which has defined many constants. CPLEX functions return a number meaning a specific constant, e.g, CPX_CALLBACK_MIP_INCUMBENT_MIPSTART = 119
. The constant name is easy to interpet while the number is not. I was wondering if there exists an easy way for doing the back-mapping.
Note: I just noticed that many CPLEX constants point to the same number, thus, the approach of my initial question would not work because of ambiguity for this use case anyway.