[Ipopt-tickets] [Ipopt] #172: confusing names in ampl_ipopt.cpp

Ipopt coin-trac at coin-or.org
Wed Oct 26 06:00:48 EDT 2011


#172: confusing names in ampl_ipopt.cpp
--------------------------+-------------------------------------------------
Reporter:  baharev        |       Owner:  ipopt-team
    Type:  clarification  |      Status:  new       
Priority:  normal         |   Component:  Ipopt     
 Version:  3.10           |    Severity:  normal    
Keywords:                 |  
--------------------------+-------------------------------------------------
 In ampl_ipopt.cpp, line 34, instead of


 {{{
 int main(int argv, char**argc)
 }}}


 I suggest


 {{{
 int main(int argc, char** argv)
 }}}


 Swapping the conventional names argc and argv is confusing.

 See also [http://en.wikipedia.org/wiki/Main_function#C_and_C.2B.2B]

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/172>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list