[SCIP] Accessing the rows added by the constraint handler in the pricer

Naga Venkata Chaitanya Gudapati - nagavenkata.gudapati@studio.unibo.it nagavenkata.gudapati at studio.unibo.it
Mon Jul 27 11:44:10 CEST 2020


Hello SCIP community,

I add a few rows using a  constraint handler and the SCIPaddRow() function in the said constraint handler. I only add rows at the root node and I collect all these rows in an std::vector which I then pass on to the pricer. Whenever I add a new variable, I have to check the rows added by the constraint handler too and add the new variable to those rows if certain conditions are met. But I am getting an error here:


[lp.c:2053] ERROR: cannot add a coefficient to the locked unmodifiable row <row_3_OR_1>
[lp.c:5543] ERROR: Error <-9> in function call
[var.c:14086] ERROR: Error <-9> in function call
[scip_lp.c:1650] ERROR: Error <-9> in function call
[pricer_problem.cpp:437] ERROR: Error <-9> in function call
 
I am not sure if it is possible to add variables to the generated rows in the pricer.  Could someone let me know what the issue is here?


Thanks a lot for the help,
Nag


More information about the Scip mailing list