[Scip] Adding rows to cutpool

sheetal murkute shvm11 at gmail.com
Tue Mar 27 18:46:32 MEST 2012


Hello,

I want to add rows to cutpool.
For this, I have written the code mentioned below:

cutval = (double *) malloc((3) * sizeof(double *));
SCIP_CUTPOOL * cutpool;
SCIP_ROW * newrow;
SCIP_COL * cutind;
namebuf.str("");
namebuf<<"row_"<<k;
cutind[0] = 22 ; cutind[1] = 34;   ( 22 and 34 are column numbers with
nonzero values, there are total 2 non-zero coefficients in a row)

SCIPcreateRow(scip, &newrow, namebuf.str().c_str(), 2, &cutind, cutval,
-SCIPinfinity(scip), 0, FALSE,FALSE,FALSE);
SCIPaddRowCutpool(scip, cutpool, newrow);

*I am getting error saying:*

/home/sxm4946/SCIP/ziboptsuite-2.1.1/scip-2.1.1/src/scip/scip/type_lp.h:73:
error: forward declaration of âstruct SCIP_Colâ
scipmcfv2.cpp:308: error: invalid use of incomplete type âstruct SCIP_Colâ


Can you please help me with this?




-- 
Thanks with Best Regards,
Sheetal

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


More information about the Scip mailing list