[Coin-ipopt] (no subject)

Andreas Waechter andreasw at watson.ibm.com
Tue Apr 4 14:49:47 EDT 2006


Hi Zaiwen,

Thanks for making us aware of this non-default behavior of the AMPL solver 
executable.  It will be fixed in the new release, which I will hopefully 
finish later this week...

Regards,

Andreas

On Thu, 23 Mar 2006, Zaiwen wrote:

>
> Thanks for reponding the message.
>
> Yes, that's an option. But what I mean is the following.
>
> There are some solvers, such as PENNON, lpsolve, can write the solutions to a ".sol" file using the following options in ampl
>
> wantsol  solution report without -AMPL: sum of
>                1 ==> write .sol file
>                2 ==> print primal variable values
>                4 ==> print dual variable values
>                8 ==> do not print solution message
>
> Can ipopt do this? Since AmplTNLP::write_solution_file call "write_sol(cmessage, x_sol_, lambda_sol_, NULL);" , maybe ipopt can do this such things after some modifications.  But I haven't figured out how to do it.
>
> With my Best!
> Zaiwen
>
>
> -------------------
>
>>
>> zw2109 at columbia.edu wrote:
>>> Hi,all:
>>>
>>> I'm using ipopt under ampl.
>>>
>>> Any one know how to write the optimal solution to a file rather than
>>> using the command "display "?
>>>
>>> (I noted "void AmplTNLP::write_solution_file" call
>>>   write_sol(cmessage, x_sol_, lambda_sol_, NULL);
>>>  But I don't know how to use this in ampl.
>>> )
>>>
>>> Thanks!
>>> Zaiwen
>>>
>>
>> Hello Zaiwen,
>>
>> Is
>>
>>   printf {i in 1.._nvars} "%-g\n", _var[i] >> myfile;
>>
>> what you are looking for?
>>
>> Dominique
>>
>
> _______________________________________________
> Coin-ipopt mailing list
> Coin-ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-ipopt
>



More information about the Coin-ipopt mailing list