Originally posted by: SystemAdmin
Hi,
I build a C++ project from a model and a data file, as it is done in the given example mulprod, using the classes IloOplModelSource and IloOplDataSource.
It is possible to get back the objective value, using the well named function getObjValue(), and to print the variables value, with printSolution(cout), but is it possible to actually collect then to use them in another optimization ? (Of course, I can always print them in a file and read it afterwards, but ... it does not seem very clever and it might compute errors)
I am aware that, as I imported the model from a file, variables do not have an actual C++ (only the string in the .mod) name so I cannot call them, but as it is done in Python ( the get_values() metod), it might exists in C++ - well it should, as the API is more developped in this language...
Question : Is there an efficent way to get the solution values ?
Thanks, Adrian
#DecisionOptimization#OPLusingCPLEXOptimizer