[Scip] using original variables within custom branch rule

Miles Lubin miles.lubin at gmail.com
Sat Sep 29 01:57:16 MEST 2012


To answer my own question for the record, this seems to work fine if I
access the transformed variables with SCIPvarGetTransVar().

Miles

On Thu, Sep 27, 2012 at 5:56 PM, Miles Lubin <miles.lubin at gmail.com> wrote:
> Hello,
>
> I'm working on a custom branching rule for a particular model where
> the branching decisions are made based on the states of a subset of
> the variables in the model (once these are fixed, all other variables
> must satisfy integrality). The logic isn't entirely straightforward,
> so I can't use the built-in handling for branching priorities. I have
> an array of SCIP_VAR*'s corresponding to the special variables in the
> original model, and I can pass this array as data to the branching
> rule. My question is: will functions like SCIPvarGetLbLocal() and
> SCIPchgVarLbNode() work with these original variables when called from
> within the branching rule, or do I need find and use the (potentially)
> transformed variables in the presolved model?
>
> Thanks!
> Miles


More information about the Scip mailing list