[Symphony] variables having more than 8 characters

Ted Ralphs ted at lehigh.edu
Wed Dec 12 09:28:29 EST 2012


It looks like you changed the wrong line. There are two cases: the first is
the case where column names are given and the second is the case where
column names are not given. You want to edit the code for the first case,
as such

                printf("%10s %10.3f\n",
                   env->mip->colname[env->best_sol.xind[j]],
                   env->best_sol.xval[j]);


Ted

On Wed, Dec 12, 2012 at 3:14 AM, fdf dfd <foreverf2 at gmail.com> wrote:

> Hello Ted
>
> I'm using 5.4.0 version and I changed 8 to 10. But solution screen didn't
> change.
>
> printf("%10d %10.3f\n", env->best_sol.xind[j],
>
> solution screen:
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Column names and values of nonzeros in the solution
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>
> X0010070      1.000
>
> X0020010      0.000
>
> .
>
> .
>
> .Best regards
>
> Tezcan
>
>
> 2012/12/11 Ted Ralphs <ted at lehigh.edu>
>
>> The quickest solution is to modify the source code directly. There are
>> several places where solutions may be printed out (you can find these by
>> looking for the string "Solution" in files within the directory
>> SYMPHONY/src/Master). Assuming you are only concerned with the final
>> solution, look in SYMPHONY/src/Master/main.c for where the solution gets
>> printed out (Search for "Solution"). In Version 5.4.4, it is on line 399.
>> On the line with the "printf" statement, change the "8" to whatever you
>> like and that will fix it. We'll look at this in a future version and see
>> what the best way to fix it is.
>>
>> Cheers,
>>
>> Ted
>>
>> On Tue, Dec 11, 2012 at 7:42 AM, fdf dfd <foreverf2 at gmail.com> wrote:
>>
>>> Hello
>>>
>>> In our project, we use variables which have more than 8 characters.
>>> However, at the solution screen, maximum 8 characters of variables are
>>> displayed. How can we solve this problem?
>>>
>>> Best regards
>>>
>>> Tezcan
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Symphony mailing list
>>> Symphony at list.coin-or.org
>>> http://list.coin-or.org/mailman/listinfo/symphony
>>>
>>>
>>
>>
>> --
>> Dr. Ted Ralphs
>> Associate Professor, Lehigh University
>> (610) 628-1280
>> ted 'at' lehigh 'dot' edu
>> coral.ie.lehigh.edu/~ted
>>
>>
>


-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20121212/e4019277/attachment.html>


More information about the Symphony mailing list