[Cbc] Stop at a given value
Stefano Avallone
stavallo at unina.it
Tue Jul 10 09:14:58 EDT 2012
On Monday 09 July 2012 15:05:40 Haroldo Santos wrote:
> In CbcModel you should use:
>
> setCutoff<http://www.coin-
or.org/Doxygen/Cbc/classCbcModel.html#a015e952199f
> 9f510bf71dc2bebecb99d>(double value)
>
> setMaximumSolutions<http://www.coin-
or.org/Doxygen/Cbc/classCbcModel.html#a5
> 7294034329f01449f16c3ae2e3ea7c2>(int value)
That is what I need. Thanks a lot!
Stefano
> On Mon, Jul 9, 2012 at 3:03 PM, Haroldo Santos
<haroldo.santos at gmail.com>wrote:
> > Using:
> >
> > cbc air04.lp cuto 57270 maxso 1 solve
> >
> > Cbc will exit as soon as a solution better than 57270 is found.
> >
> > Cheers,
> >
> > Haroldo
> >
> > On Mon, Jul 9, 2012 at 2:36 PM, Stefano Avallone <stavallo at unina.it>wrote:
> >> Hello,
> >>
> >> I am using a Cbc model to solve a mixed integer linear problem. The goal
> >> is to
> >> minimize a given objective function, but I would like to stop the
> >> execution as
> >> soon as a solution better than a provided value is found.
> >>
> >> It looks like that none of the methods of the CbcModel class provides the
> >> functionality I need. Any hint how to do that?
> >>
> >> Many thanks in advance,
> >> Stefano
> >>
> >> _______________________________________________
> >> Cbc mailing list
> >> Cbc at list.coin-or.org
> >> http://list.coin-or.org/mailman/listinfo/cbc
> >
> > --
> > =============================================================
> > Haroldo Gambini Santos
> > Computing Department - Universidade Federal de Ouro Preto - UFOP
> > email: haroldo [at ] iceb.ufop.br
> > home/research page: www.decom.ufop.br/haroldo/
> >
> > "Computer science is no more about computers than astronomy
> > is about telescopes." Edsger Dijkstra
More information about the Cbc
mailing list