Originally posted by: David0424
Hi, I used CPLEX .net API to generate a model, and I met a strange behavior of CPLEX.
For example, the model had variable X and Y, the number of variables X is much larger than variable Y.
I generated X first, then I generated Y, it took five minutes to crate all variables in the model.
I changed the sequecne of generate variables, I generated Y first then X, it took only thirty seconds!
I checked two model had same number of variables, I just siwtched the code sequence to generated the variables.
My qeusetion is why this behavior show up in CPLEX API?
#CPLEXOptimizers#DecisionOptimization