[Coin-ipopt] (no subject)

Dominique Orban Dominique.Orban at polymtl.ca
Thu Mar 23 20:17:31 EST 2006


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