[Scip] Segmentation fault while adding a new branching rule

sheetal murkute shvm11 at gmail.com
Thu Apr 19 18:20:08 MEST 2012


Hi,

I want to include a new branching rule in SCIP. I am selecting a fractional
variable for branching.
For this I have written c-file and h-file similar to most infeasible
branching.

I have implemented the
methods SCIP_DECL_BRANCHCOPY(branchCopymybranchingrule)
and static SCIP_DECL_BRANCHEXECLP(branchExeclpmybranchingrule).

My code works for testing the existing branching rules. For adding new
branching rule, I assumed that this rule will be
added as a 9th rule, and set the priority for rules[8].
        SCIP_BRANCHRULE** rules;
rules = SCIPgetBranchrules(scip);
SCIP_CALL_EXC(SCIPsetBranchrulePriority(scip, rules[8] , 10000000));

However, when I run my code with this, I get a segmentation fault.
Do I have to implement/call any additional method for including new
branching rule?



-- 
Thanks with Best Regards,
Sheetal

:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.zib.de/mailman/private/scip/attachments/20120419/ae43cf50/attachment.html


More information about the Scip mailing list