[Cbc] cbc.savedSolutionObjective() does not flip sign for max
Matthew Galati
matthew.galati at gmail.com
Thu Feb 12 17:06:19 EST 2015
int nSolutions = cbc.numberSavedSolutions();
printf("nSolutions=%d\n", nSolutions);
for(int i =0; i < nSolutions; i++){
printf("i=%d obj=%g\n", i, cbc.savedSolutionObjective(i));
}
double objValue = cbc.getObjValue();
printf("opt=%g\n", cbc.getObjValue());
nSolutions=6
i=0 obj=-282.4
i=1 obj=-282.21
i=2 obj=-279.97
i=3 obj=-267.76
i=4 obj=-248.95
i=5 obj=-247.9
opt=282.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20150212/4d7c3b3c/attachment.html>
More information about the Cbc
mailing list