[Cbc] Column names in GMPL Models

John Forrest john.forrest at fastercoin.com
Wed Jul 27 03:40:21 EDT 2011


Haroldo,

That line goes back at least to Cbc2.4.  I presume there was a bug
somewhere at one time.

I would think it perfectly safe to make the change - the worst that
could happen is that a user would have to add -keepnames off.

I will make the change to 2.7 and trunk if there are no objections
today.

John



On Tue, 2011-07-26 at 21:03 -0300, Haroldo Santos wrote:
> Dear Forrest/Ted,
> 
> In cbc 2.7 when I solve a MathProg model column names are substituted
> by sequential numbers.
> Example:  cbc color.mod% solve solu sol.txt   (names in sol.txt are
> missing)
> 
> Looking in the source, I've found that I could "fix" the problem in
> CbcSolver.cpp just by changing an if:
> 
> CbcSolver.cpp:6380  
> changing:
>        if (keepImportNames && gmpl <= 0) {
> to:
>        if (keepImportNames) {
> 
> I didn't understand why gmpl names were deliberately discarded. 
> Is there any reason for this ? 
> 
> Cheers,
> 
> Haroldo
> 
> -- 
> =============================================================
> Haroldo Gambini Santos
> Computing Department - Universidade Federal de Ouro Preto - UFOP
> email: haroldo [at ] iceb.ufop.br
> home/research page: www.decom.ufop.br/haroldo/
>  
> "Computer science is no more about computers than astronomy 
> is about telescopes." Edsger Dijkstra
>  
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc




More information about the Cbc mailing list