[Ipopt] re-use AmplTNLP

Andreas Waechter andreasw at watson.ibm.com
Wed Jun 10 17:54:24 EDT 2009


Hi Ali,

Sorry for the delayed reply, I'm finally trying to catch up with email.

I don't know the internals of the ASL.  However, after Ipopt finishes, the 
final iterate is stored in the x_sol_ member of AmplTNLP.  You could just 
add an accessor method to this class to get access.

Regards,

Andreas

On Tue, 26 May 2009, Ali Baharev wrote:

> Dear Andreas,
>
> Thanks for the detailed answer. The only thing i could not figure out
> is the following.
>
> How can i retrieve the optimal solution / minimizer for constraint
> violation without changing the code of the AmplTNLP class or writing a
> new class?
>
> The Lastx_component of the asl structure seems OK but i do not know
> for sure if the Lastx_ is indeed the optimal solution / minimizer for
> constraint violation.
>
> http://groups.google.com/group/ampl/browse_thread/thread/20f723bb9ae60a00
>
> Although i posted this question to the AMPL mailing list, i guess it
> rather depends on the solver not on the AMPL executable.
>
> Many thanks,
>
> Ali
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list