Originally posted by: ShafiAhad
Hello Mr. Alex,
I am trying to solve a model in iteration using flow control (main). I can solve the problem without issue but the problem I am facing is displaying the values of decision variable.
the command "writeln("OBJ = ",cplex.getObjValue());" displays the value of objective function.
but when I try to print value of decision variable it is showing error. for example if I have a decision variable 'x' and i write" writeln("X= ",x);" it is showing "Scripting runtime error: unknown variable 'x'."
can you please help me with the right function to write the value of decision variables?
Thanks in advance.
#DecisionOptimization#OPLusingCPLEXOptimizer