[Scip] Creating a Hash Map for SCIPcopy

Timo Berthold berthold at zib.de
Tue Jul 1 19:36:56 CEST 2014


Hi Matthias,

you can get access to the block memory pointer by calling SCIPblkmem(scip)
which is defined in scip.h. As an example for passing information forward
and backward between a source SCIP and a target SCIP, see, e.g., the RENS
heuristic.

Best regards,
Timo

> Dear list,
>
> I want to use SCIPcopy() to produce a global copy of a given problem. I
> want to know which source variable corresponds to which target variable.
> I assume that the best way is to supply SCIPcopy() with a hash map (i.e.
> set the varmap parameter). But how do I create the hash map?
>
> SCIPhashmapCreate() needs a BMS_BLKMEM*, but I don't have access to
> scip->mem->probmem! Shall I instantiate a new block memory shell?
>
> Best regards,
>
> Matthias Walter
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>




More information about the Scip mailing list