[Cbc] Cbc Digest, Vol 73, Issue 5

Alexis Guigue aguigue at softree.com
Tue Jun 25 17:57:28 EDT 2013


Hi John,

I am going to look into this. My code looks roughly this.

- I have an object OsiClpSolverInterface   m_osiClpSolver which I 
populate with loadProblem.
- I create from there a CBCModel object, CbcModel 
cbcModel(m_osiClpSolver), pass it an handler OptEventHandlerCBC handler2 
(this is in the event function of this handler that I want to retrieve 
the value of some particular values) cbcModel.passInEventHandler(&handler2),
- and finally  just call cbcModel.branchAndBound();

Quite straightforward

Thanks

Alexis


On 2013-06-25 9:00 AM, cbc-request at list.coin-or.org wrote:
> Send Cbc mailing list submissions to
> 	cbc at list.coin-or.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://list.coin-or.org/mailman/listinfo/cbc
> or, via email, send a message with subject or body 'help' to
> 	cbc-request at list.coin-or.org
>
> You can reach the person managing the list at
> 	cbc-owner at list.coin-or.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cbc digest..."
>
>
> Today's Topics:
>
>     1. Question about CbcEventHandler - Follow up (Alexis Guigue)
>     2. Re: Question about CbcEventHandler - Follow up (John Forrest)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 24 Jun 2013 15:40:25 -0700
> From: Alexis Guigue <aguigue at softree.com>
> To: cbc at list.coin-or.org
> Subject: [Cbc] Question about CbcEventHandler - Follow up
> Message-ID: <51C8CAD9.3030305 at softree.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi sll
>
> Back to my question, thanks to Haroldo, I found this map originalColumns
> _ that converts the indices of the Preprocessed model
> to the original model. So this sounds quite good, but I discovered that
> the variable I want to retrieve the value of is eliminated at
> the preprocessing stage. Is there a way to ''force'' it to stay in the
> preprocessed model? If not, I can find a alternate way to
> solve my pb.
>
> NOTE: my variable is a dummy variable, i.e., it only appears in one
> constraint, where it is defined, i.e.,
> DUMMY = c1x1+c2x2+......
>


-- 
Alexis Guigue, E.I.T., B.Eng., M.A.Sc., Ph.D.
Software Engineer/Research Engineer
aguigue at softree.com
604-519-6222, ext. 3

Softree Technical Systems Inc.
Engineering an Easier Way
www.softree.com



More information about the Cbc mailing list