Thank you so much Renaud, I changed my .dat file and now it contains only one array (named Pr) , which is [10, 10, 10]
I have written a script like this :
IloNumArray Pr(env);
const char* filename = "Project.dat";
if (argc > 1)
filename = argv[1];
ifstream file(filename);
if (!file) {
cerr << "ERROR: could not open file '" << filename << "' for reading" << endl;
cerr << "ERROR: could not open file for reading" << endl;
cerr << "usage: " << argv[0] << " <file>" << endl;
throw(-1);
}
file >> Pr ;
cout << Pr << endl;
When I print to check if it is written or not it gives me
[]
not
[10, 10, 10] as we expect ? I could not understand what is the problem? (When I say file <<, it does not recognize the << operator) I use Visual Studio for C++. Do you have any idea ? Thank you so mcuh in advance
#DecisionOptimization#Support#SupportMigration