help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] solution rounding support


From: Robbie Morrison
Subject: [Help-glpk] solution rounding support
Date: Wed, 4 May 2011 03:16:26 +1200 (NZST)
User-agent: SquirrelMail/1.4.17

Hello Andrew

Just wondered it the following "solution rounding" call
still work (it still compiles)?

  lpx_set_int_parm(lp, LPX_K_ROUND, 1);   // enable output rounding
  lpx_set_int_parm(lp, LPX_K_ROUND, 0);   // disable output rounding

As far as I could tell, all the relevant source code has been disabled.

best wishes, Robbie
---

glpapi08.c:      /*if (cps->round && fabs(z) < 1e-9) z = 0.0;*/
glpapi08.c:      /*if (cps->round && fabs(pval) < 1e-9) pval = 0.0;*/
glpapi08.c:      /*if (cps->round && fabs(dval) < 1e-9) dval = 0.0;*/
glpapi08.c:      /*if (cps->round && fabs(pval) < 1e-9) pval = 0.0;*/
glpapi08.c:      /*if (cps->round && fabs(dval) < 1e-9) dval = 0.0;*/
glpapi09.c:      /*if (cps->round && fabs(z) < 1e-9) z = 0.0;*/
glpapi09.c:      /*if (cps->round && fabs(mipx) < 1e-9) mipx = 0.0;*/
glpapi09.c:      /*if (cps->round && fabs(mipx) < 1e-9) mipx = 0.0;*/
glpapi06.c:      /*if (cps->round && fabs(z) < 1e-9) z = 0.0;*/
glpapi06.c:      /*if (cps->round && fabs(prim) < 1e-9) prim = 0.0;*/
glpapi06.c:      /*if (cps->round && fabs(dual) < 1e-9) dual = 0.0;*/
glpapi06.c:      /*if (cps->round && fabs(prim) < 1e-9) prim = 0.0;*/
glpapi06.c:      /*if (cps->round && fabs(dual) < 1e-9) dual = 0.0;*/
glpios03.c:         /*if (T->round <= 5)*/
glplpx01.c:      cps->round    = 0;
glplpx01.c:            cps->round = val;
glplpx01.c:            val = cps->round; break;
glpios01.c:      /*tree->round = 0;*/

---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : address@hidden
Webmail (preferred)           : address@hidden
[from Webmail client]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]