[Cbc] Getting CSV result with variables only greater than epsilon (1e-4), no zeros result

Haroldo Gambini Santos haroldo.santos at gmail.com
Sat Mar 12 14:08:48 EST 2016


Hi Noli,

In CbcSolver.cpp,  line 9685,  just change
        } else if (fabs(primalColumnSolution[iColumn]) > 1.0e-8) {
to
        } else if (fabs(primalColumnSolution[iColumn]) > 1.0e-4) {

Cheers,

Haroldo

Em 11-03-2016 21:56, Noli Sicad escreveu:
> Hi,
>
> I like to get results  of variables only greater than epsilon( 1e-4).
>
> # significantly different from zero
> epsilon  = 1e-4;
>
> How do I do this? Which source file should I modify and how?
>
> My MIP model submitted to CBC solver is quite big (e.g. greater than
> 50,000 columns) and most of the results are just zero (0). Opening in
> the spreadsheet is slow when cleaning the result.
>
> I think it would be good to have option in the CSV output with
> variables only greater than epsilon  (1e-4). No zero (0) included in
> the CSV output.
>
> Thanks.
>
> Regards,
>
> Noli
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>

-- 
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
http://www.decom.ufop.br/haroldo/



More information about the Cbc mailing list