Originally posted by: SystemAdmin
[UDOPS said:]
So, I am studying the Cut Stock, column generation example. The need for a few lines is not clear to me. These lines are:
var masterData = thisOplModel.dataElements;
var masterRC = new IloOplRunConfiguration(masterDef,masterData);
masterData.Patterns.add(masterData.Patterns.size,1,subOpl.Use.solutionValue);
Why is there a need to create variable masterData? Why not use "thisOpleModel.dataElements" in its place? Why construct a new configuration, "masterRC"? Why not just run "thisOplModel" ? In general, why are duplicates of exising model elements created, when the original source elements are not used directly? It seems duplicative.
Is the correct interpretation of masterData that it is a handle to an existing object, and not a new object in its own right?
#DecisionOptimization#OPLusingCPLEXOptimizer