[Ipopt] intermediate_callback

Dominik Skanda dominik.skanda at web.de
Thu Nov 27 08:48:41 EST 2008


Hi all,
due to convergence problems I want to use the function intermediate_callback for an alternate STOP criteria.
This is: 

intermediate_callback ()
{
  if (obj_function < SAVEmin) 
     {    SAVEmin=obj_function;
          result_not_improved=0;
          SAVE_SOLUTION_VECTOR;
          return true } 
     else 
     {     result_not_improved+1; 
           if (result_not_improved>50) return false;}
     return true; }

In the part SAVE_SOLUTION_VECTOR I have to read out the optimization variables at that iteration step (the x avriables). 
Can someone say me how to do that ?

Many thanks in advance
Dominik 
_________________________________________________________________________
Sensationsangebot nur bis 30.11: WEB.DE FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K13805B7069a




More information about the Ipopt mailing list