There are so many functions that sometimes, even if I seek for a solution, it is hard to gather all the pieces together to make it work!! ;)
Original Message:
Sent: Mon April 15, 2024 07:44 AM
From: ALEX FLEISCHER
Subject: print output to terminal in OPL
in CPLEX_Studio2211\opl\examples\opl_interfaces\cpp\src oplrunsample.cpp
you should not forget
opl.postProcess();
which handles the display of a solution
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Mon April 15, 2024 04:57 AM
From: Samuele Viaro
Subject: print output to terminal in OPL
Hi Alex,
I am using the makefile provided in opl/examples/opl_interfaces/cpp/x86-64_linux/static_pic, modified to include my additional .cpp files.
Then in my main .cpp I load the .mod and .dat files:
IloEnv env;
IloOplRunConfiguration rc(env, "./dynamic.mod", "./dynamic.dat");
and solve with
rc.getCplex().solve()
isn't oplrun called automatically if I use the makefile provided by IBM?
Thanks
Sam
------------------------------
Samuele Viaro
Original Message:
Sent: Sat April 13, 2024 02:47 AM
From: ALEX FLEISCHER
Subject: print output to terminal in OPL
Hi
have you used oplrun to run your .mod file ?
regards
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Thu April 11, 2024 04:35 AM
From: Samuele Viaro
Subject: print output to terminal in OPL
Hello,
I have defined and initialize a matrix in my .mod as
float tOldIt[j in J, i in I] = -1.0;
and I have been trying to print it on my terminal (Ubuntu) using the execute block as
execute DISPLAY
{
writeln(tOldIt);
writeln(' HELLO ');
};
...but it does not print anything, not even the 'HELLO'... Is there a way to do it?
Thanks
Sam
------------------------------
Samuele Viaro
------------------------------