[SCIP] Multiple Constraint Handlers
Stefan Vigerske
svigerske at gams.com
Thu Mar 25 09:57:37 CET 2021
Hi,
to SCIP, a SCIP_CONSDATA* is just a pointer that it receives from
conshdlrs and passes it pack to conshdlrs. It's up to the conshdlr to
figure out how to interpret the memory that the SCIP_CONSDATA* points
to. Every constraint handler that comes with SCIP has its own
understanding what its constraint data are (its own definition of the
struct that SCIP_CONSDATA* points to) and so you can do in your
constraint handlers. Casting may help.
Stefan
On 3/25/21 8:59 AM, Schrotenboer, Albert wrote:
> Dear SCIP developers and community,
>
>
> I work in C++. To keep my code neat, I'd like to implement multiple
> separate constraint handlers (for different type of inequalities).
>
> My question concerns the SCIP_CONSDATA* struct which is basically attached
> to constraints you add /manage via the constraint handler. Is it possible
> to create multiple SCIP_CONSDATA* structs associated with each of my
> constraint handlers? Of course, I cannot define it twice, and I don't think
> inheritance is the solution here as these are C structs..
>
>
>
> If not, no problem, then I'll just need to manage some structs with a lot
> of data in it!
>
>
>
> Thanks,
>
> Albert
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
>
More information about the Scip
mailing list