[Coin-ipopt] (no subject)

Zaiwen zw2109 at columbia.edu
Thu Mar 23 21:31:01 EST 2006


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
>




More information about the Coin-ipopt mailing list