[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 12:36:50 CEST 2020


I think I figured out the problem. I should have it modifiable in the creation of the row.

________________________________________
From: Scip <scip-bounces at zib.de> on behalf of Naga Venkata Chaitanya Gudapati - nagavenkata.gudapati at studio.unibo.it <nagavenkata.gudapati at studio.unibo.it>
Sent: Monday, July 27, 2020 11:44 AM
To: scip at zib.de
Subject: [SCIP] Accessing the rows added by the constraint handler in the       pricer

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
_______________________________________________
Scip mailing list
Scip at zib.de
https://listserv.zib.de/mailman/listinfo/scip



More information about the Scip mailing list