# CPLEX - Accessing root node before and after cuts

**URL:** https://discourse.julialang.org/t/cplex-accessing-root-node-before-and-after-cuts/11650
**Category:** Optimization (Mathematical)
**Created:** [June 13, 2018, 3:10pm UTC](https://discourse.julialang.org/t/cplex-accessing-root-node-before-and-after-cuts/11650 "2018-06-13T15:10:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lefteris\_Manousakis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lefteris_manousakis/32/10832_2.png) [@Lefteris\_Manousakis](https://discourse.julialang.org/u/Lefteris_Manousakis)
#### Post date: [June 13, 2018, 3:10pm UTC](https://discourse.julialang.org/t/cplex-accessing-root-node-before-and-after-cuts/11650/1 "2018-06-13T15:10:27Z")

</div>

Hi! Is there a way to access the value of the root node relaxation of cplex before and after applying the cuts? I would like to measure the effectiveness of cuts at root 0 and how much they can tighten the formulation.

Thank you in advance,  
Lefteris

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [June 13, 2018, 8:25pm UTC](https://discourse.julialang.org/t/cplex-accessing-root-node-before-and-after-cuts/11650/2 "2018-06-13T20:25:58Z")

</div>

CPLEX.jl is just a wrapper for the C API to CPLEX. If you can do it in C, you can do it from Julia. (Caveat, some of the functions are not yet wrapped.)

You probably need to set some parameters to disable different cuts etc, set the [node limit](https://www.ibm.com/support/knowledgecenter/SSSA5P_12.6.1/ilog.odms.cplex.help/CPLEX/Parameters/topics/NodeLim.html) to 0, solve.  
Then re-enable the cuts, keep node lim at 0, and re-solve.

You can find the list of parameters here:  
[https://www.ibm.com/support/knowledgecenter/SSSA5P\_12.6.1/ilog.odms.cplex.help/CPLEX/Parameters/topics/introListAlpha.html](https://www.ibm.com/support/knowledgecenter/SSSA5P_12.6.1/ilog.odms.cplex.help/CPLEX/Parameters/topics/introListAlpha.html)
