<div dir="ltr"><div><div><div><div>Dear SCIPers<br><br></div>in CG: <br>in scip_init <br></div>I do the following:<br>SCIP_CALL( SCIPgetTransformedCons(scip, m_con_MasterOnly[i], &m_con_MasterOnly[i]) );<br><br></div>where these constraints are declared as <br>
true, /* initial */<br> false, /* separate */<br> true, /* enforce */<br> true, /* check */<br> true, /* propagate */<br>
false, /* local */<br> false, /* modifiable */<br> false, /* dynamic */<br> false, /* removable */<br> false) ); /* stickingatnode */<br>
</div><div>in the master problem (non-modifiable because they do not contain any column of pricing problem). The transformation is done successfully.<br></div><div>But when it arrives first time in the pricing problem and I ask <br>
dual_MasterOnly.push_back(SCIPgetDualsolLinear(scip, m_con_MasterOnly[i]));<br></div><div>then I get an error message that the constraint is not linear!<br></div><div>Moreover, when I look at the constraint it s name has changed to "andgate_0" which does not correspond with the original constraint (and the rest of elements of array have name field equal to "NULL"). <br>
<br></div><div>The strange thing is that the first element of this array is correct but the second up to end have changed.<br><br></div><div>instead I have a set of constraints which are linking constraints and I have declared them as <br>
<br> true, /* initial */<br> false, /* separate */<br> true, /* enforce */<br>
true, /* check */<br> true, /* propagate */<br> false, /* local */<br>
true, /* modifiable */<br> false, /* dynamic */<br> false, /* removable */<br>
false) ); /* stickingatnode */<br><br></div><div>to be modified upon need (adding new col).<br></div><div>Everything is fine with this set of constraints. and I can get the dual values.<br>
<br></div><div>Now the question is that I have a set of constraint which need to be extended by adding new columns (linking constraints, master-only and priced vars) , a set of masterOnly constraints (constraints made of master-only variables) and a set of convexity constraints. <br>
</div><div><br></div><div><br>What should be the way of declaring each set of such constraints? Is there something wrong?<br><br></div><div>Cheers<br>Shahin<br></div><div><br><br><br><br><br><br></div><div><br></div><div>
<br><br><br><br><br><br><br><br></div><div><br><br><br><br><br></div><div><br><br><br><br></div></div>