It worked! I seems that my colleague doesn't have this problem on the OSX version. Thank you.
Original Message:
Sent: Tue February 14, 2023 08:49 AM
From: Renaud Dumeur
Subject: IloOplModel & reference is null on ILOG Cplex
Dear Mathis,
Thank you for the files. We could reproduce the problem which is triggered by the use of character with accents in filenames!
This seems to be a bug and as a workaround I suggest you rename the files without accents.
I hope this helps,
Cheers,
------------------------------
Renaud Dumeur
Original Message:
Sent: Tue February 14, 2023 08:11 AM
From: Mathis Harouard
Subject: IloOplModel & reference is null on ILOG Cplex
Dear Renaud,
Here is the archive of the project: https://www.dropbox.com/s/dv20wlv61g5j4pj/HubLocation.zip?dl=0
It works on my colleague's computer, i guess there is something wrong in my Cplex settings but i donwloaded it with the same process than him.
Cheers,
------------------------------
Mathis Harouard
Original Message:
Sent: Mon February 13, 2023 09:03 AM
From: Renaud Dumeur
Subject: IloOplModel & reference is null on ILOG Cplex
Dear Mathis,
We cannot reproduce your problem so could you please provide us with a tarball or zip archive containing this project configuration file as well (files with names starting with '.' in the project directory). Maybe they are corrupted.
Cheers,
------------------------------
Renaud Dumeur
Original Message:
Sent: Fri February 10, 2023 08:23 AM
From: Mathis Harouard
Subject: IloOplModel & reference is null on ILOG Cplex
Dear Renaud
There is my model (model1), it is a facility location problem to minimize cost :
{string} Cities = ...;
int Fixed[Cities] = ...;
int Demand[Cities] = ...;
float SupplyCost[Cities][Cities] = ...;
dvar boolean y[Cities]; //1 if there is a facility in tthe city
dvar boolean x[Cities][Cities]; //1 if city i is provided by facility in city j
dexpr float
Objective = sum(j in Cities) Fixed[j]*y[j] + sum(i in Cities, j in Cities) 0.35*Demand[i]*x[i][j]*SupplyCost[i][j];
minimize Objective;
subject to{
forall (i in Cities) sum(j in Cities) x[i][j]==1; //One facility providing a city
forall (i in Cities, j in Cities) x[i][j]<= y[j]; //Provided by city where there is a facility
}
execute DISPLAY_RESULTS{
writeln("Objective = ",Objective);
for (var j in Cities)
{
if (y[j]==1)
{
write(" ", j);
}
}
writeln;
for (var j in Cities)
{
if (y[j]==1)
{
writeln();
write(" ", j, " delivers to: ");
for (var i in Cities)
{
if (x[i][j]==1)
{
write(" ",i);
}
}
writeln();
}
}
}
And Data:
/NbCities=12;
Cities = {A,B,C,D,E,F,G,H,I,J,K,L};
//Capacity = 99999;
//MaxDistance = 9999;
//MaxDepots = 9999;
Fixed = [100 200 130 150 225 175 190 210 165 230 125 215 ];
Demand = [15 10 12 18 5 24 11 16 13 22 19 20 ];
SupplyCost = [
[ 0 15 37 55 24 60 18 33 48 40 58 67 ]
[ 15 0 22 40 38 52 33 48 42 55 61 61 ]
[ 37 22 0 18 16 30 41 28 20 39 58 39 ]
[ 55 40 18 0 34 12 69 46 24 62 43 34 ]
[ 24 38 16 34 0 36 25 12 24 47 37 43 ]
[ 60 52 30 12 36 0 57 42 12 50 31 22 ]
[ 18 33 41 69 25 57 0 15 45 22 41 61 ]
[ 33 48 28 46 12 42 15 0 30 37 25 46 ]
[ 48 42 20 24 24 12 45 30 0 38 19 19 ]
[ 40 55 39 62 47 50 22 37 38 0 19 40 ]
[ 58 61 58 43 37 31 41 25 19 19 0 21 ]
[ 67 61 39 34 43 22 61 46 19 40 21 0 ]
];
And there is a screen dump of ILOG when i try to run my configuration with data (donnee1) that are on the screen. I hope this is clear .
Thank you!
------------------------------
Mathis Harouard
Original Message:
Sent: Thu February 09, 2023 05:22 AM
From: Renaud Dumeur
Subject: IloOplModel & reference is null on ILOG Cplex
Dear Mathis,
Could you please share a minimal model that would allow us (with some luck) to reproduce the problem?
Could you also please share a screen dump showing the problem?
Cheers,
------------------------------
Renaud Dumeur
Original Message:
Sent: Wed February 08, 2023 10:58 AM
From: Mathis Harouard
Subject: IloOplModel & reference is null on ILOG Cplex
Hello,
I just downloaded the free version ILOG Cplex for Educational Puropose onWindows 11. I created my first project with a model and data as my teacher asked. When i try to solve it with a configuration, i have an error "IloOplModel & reference is null" location: unknown, type: OPL Project. I downloaded it as my teacher recomanded as every other students of my class and i use the same code but I am the only one who has this error. My teacher doesnt understand while he has used Cplex for Years. I tried to uninstall and reinstall and change my workspace but nothing work. I have no error in my code but an little red cross error directly on the project on the work tree. Does someone know where this error come from?
------------------------------
Mathis Harouard
------------------------------