[Ipopt-tickets] [Ipopt] #194: ampl with ipopt: Syntax error: ")" unexpected

Ipopt coin-trac at coin-or.org
Fri Feb 15 15:44:38 EST 2013


#194: ampl with ipopt: Syntax error: ")" unexpected
--------------------+------------------------
Reporter:  guest    |      Owner:  ipopt-team
    Type:  defect   |     Status:  new
Priority:  highest  |  Component:  Ipopt
 Version:  3.10     |   Severity:  normal
Keywords:           |
--------------------+------------------------
 I get the error message

 {{{
 Syntax error: ")" unexpected
 }}}

  from Ipopt when trying to solve this really simple model in ampl:


 {{{
 # foo.mod
 var f {x in -1..1} ;
 minimize E: sum {x in -1..1} f[x]^2 ;
 }}}



 {{{
 # foo.dat
 var f := -1 0.5 0 0.5 1 0.5;
 }}}



 {{{
 # commands entered in the ampl prompt:
 model foo.mod;
 data foo.dat;
 option solver ipopt;
 solve;
 }}}



 I use ampl with the latest version of Ipopt (3.10.3). Everything works as
 expected when I don't use a .dat file but specify initial conditions in
 the .mod file as follows:


 {{{
 # foo.mod
 var f {x in -1..1}  := 1;
 minimize E: sum {x in -1..1} f[x]^2 ;
 }}}

 {{{
 # commands entered in the ampl prompt:
 model foo.mod;
 option solver ipopt;
 solve;
 }}}

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



More information about the Ipopt-tickets mailing list