[SCIP] Print Solution values as debug message in scip
Natalia Perina
nperina at princeton.edu
Sat Apr 22 22:36:20 CEST 2017
Hi there,
I am trying to debug my code and print the solution values of integer
variables.
I am using this line:
SCIPdebugMsg(scip, "actual val=%d \n", SCIPgetSolVal(subscip, sol,
x_var[w][d]));
x_var is of the type SCIP_VARTYPE_BINARY
the problem is that when i print it, it is giving me weird values , i.e. it
is printing "-0.0000" , so giving me a negative zero? I can't tell if this
is because of the formatting or some other error?
Thanks,
Natalia
--
Natalia Perina
Princeton University l 2017
nperina at princeton.edu
202 360 9536
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20170422/64826ab3/attachment.html>
More information about the Scip
mailing list