scipopt / SCIPpp

A C++ wrapper for SCIP
Apache License 2.0
20 stars 3 forks source link

Branching rules #8

Closed matheusdiogenesandrade closed 9 months ago

matheusdiogenesandrade commented 1 year ago

Is there any branching rule support? Or can it be used through the SCIP C API?

Thanks and BR.

hedtke commented 1 year ago

I added a new test case that checks whether one can use ObjSCIP together with SCIP++. That works well as one can access the underlying SCIP pointer via Model::scip(). See https://github.com/scipopt/SCIPpp/blob/main/test/test_objscip.cpp

I could also add new methods like Model::addEventhdlr which would allow code such as

Model model("Simple");
model.addEventhdlr<MyEventHandler>();

instead of

Model model("Simple");
SCIPincludeObjEventhdlr(model.scip(), new MyEventHandler(model.scip()), true);

Is that what you are looking for?

matheusdiogenesandrade commented 9 months ago

Is that what you are looking for?

Yes, exactly this. Thanks.