I have a global variable in the class:
IloModel model;
that is going to be shared amongst several functions of the class.
In one of the functions, I am going to initialize this model like:
model(env);
I get the error: Error 1 error C2064: term does not evaluate to a function taking 1 arguments
This works if I write in the function:
IEnv env;
IloModel model(env);
but not if the model object is declared globally.
Please advice how to make model object global so same object can be shared amongst several functions?