Originally posted by: Hary18338
Hi,
I have written a smalleg.mod file which calculates a variable "WorkloadGuess" and uses this in an objective function to get a minimum solution. I am receiving a valid solution, however, now my challenge is to update the variale WorkloadGuess in my main file with "newGuess" and then insert this back into the solver for a new solution. I have the following problem:
When I update WorkloadGuess with newGuess and resolve, the variables do not update. I receive the same guess and the same solution each time. I believe my method of saving the updqated variable and regenerating the model is not correct but am not sure how it should be done.
I am attaching my main, .dat and .mod files here. Any help would be much appreicated.
#DecisionOptimization#OPLusingCPLEXOptimizer