Retrieving logs from a Cloud run
AnsweredHi everybody.
I'm using Gurobi Instant Cloud to run my MIP problem, and I'd like to retrieve the log associated to it. My code has set the logging option:
int rval = GRBsetintparam(GRBgetenv(m_model), GRB_INT_PAR_OUTPUTFLAG, 1);
But, since my MIP is being run on a remote machine, my stdout only shows the communication details:
Compute Server job ID: a25a59de-01b8-49ce-9c1a-4997c15de830
Capacity available on 'https://ip-10-0-75-145:61000' - connecting...
Established HTTPS encrypted connection
Compute Server communication statistics:
Sent: 22.2 MBytes in 374 msgs and 0.00s (0.00 MB/s)
Received: 1.8 MBytes in 848 msgs and 0.00s (0.00 MB/s)
Is it doable to retrieve such logs from the remote machine, or should I modify my code to use directly the cloud functionality from it (and not via the Instant Cloud, which, I must say, would be a very undesirable solution)?
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Alvaro,
You can retrieve the LOG file from the Cloud by setting the corresponding parameter for the environment holding your model.
In C++ this could be something like
// Create an environment
GRBEnv env = GRBEnv(true);
env.set("LogFile", "myLogFile.log");
env.start();
// Create an empty model
GRBModel model = GRBModel(env);Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments