From susana.lera at lsespace.com Wed Jan 23 09:56:42 2008 From: susana.lera at lsespace.com (Susana Lera) Date: Wed, 23 Jan 2008 15:56:42 +0100 (CET) Subject: [GAMSlinks] IPOPT options through GAMS Message-ID: <31383767.261201100202637.JavaMail.root@mx1.lsespace.com> hi, I am trying to run a nonlinear problem with IPOPT through GAMS. I made a ipopt.opt file where I write my ipopt options. I tried to save this file in several locations, but it is never recognize by GAMS. Does anybody know where the right location for the file is? and whether this is the right file name and extension for defining the options? Thanks. Susana From stefan at math.hu-berlin.de Wed Jan 23 10:12:36 2008 From: stefan at math.hu-berlin.de (Stefan Vigerske) Date: Wed, 23 Jan 2008 16:12:36 +0100 Subject: [GAMSlinks] IPOPT options through GAMS In-Reply-To: <31383767.261201100202637.JavaMail.root@mx1.lsespace.com> References: <31383767.261201100202637.JavaMail.root@mx1.lsespace.com> Message-ID: <47975964.7070000@math.hu-berlin.de> Hi, > I am trying to run a nonlinear problem with IPOPT through GAMS. > I made a ipopt.opt file where I write my ipopt options. I tried to save this file in several locations, but it is never recognize by GAMS. > > Does anybody know where the right location for the file is? and whether this is the right file name and extension for defining the options? The right place is the directory from which you start GAMS. To make GAMS/Ipopt recognize this file, you need to either give the option optfile=1 at the gams command line (gams optfile=1) or put a .optfile=1 statement in your gams model file. Otherwise, GAMS/Ipopt does not read an option file. Btw, you can use alternative option files ipopt.op2, ipopt.op3, ..., ipopt.o12, ... by setting optfile=2, optfile=3, ..., optfile=12, ... Best, Stefan -- Stefan Vigerske Humboldt University Berlin, Numerical Mathematics http://www.math.hu-berlin.de/~stefan From stefan at math.hu-berlin.de Wed Jan 23 10:25:24 2008 From: stefan at math.hu-berlin.de (Stefan Vigerske) Date: Wed, 23 Jan 2008 16:25:24 +0100 Subject: [GAMSlinks] IPOPT options through GAMS In-Reply-To: <47975964.7070000@math.hu-berlin.de> References: <31383767.261201100202637.JavaMail.root@mx1.lsespace.com> <47975964.7070000@math.hu-berlin.de> Message-ID: <47975C64.6030104@math.hu-berlin.de> Hi, >> I am trying to run a nonlinear problem with IPOPT through GAMS. >> I made a ipopt.opt file where I write my ipopt options. I tried to save this file in several locations, but it is never recognize by GAMS. >> >> Does anybody know where the right location for the file is? and whether this is the right file name and extension for defining the options? > > The right place is the directory from which you start GAMS. > To make GAMS/Ipopt recognize this file, you need to either give the > option optfile=1 at the gams command line (gams optfile=1) or > put a .optfile=1 statement in your gams model file. > Otherwise, GAMS/Ipopt does not read an option file. > > Btw, you can use alternative option files ipopt.op2, ipopt.op3, ..., > ipopt.o12, ... by setting optfile=2, optfile=3, ..., optfile=12, ... What just come in my mind... Do you use the Ipopt that is delivered with GAMS or a selfcompiled version? In that case the name of the first option file is coinipopt.opt, not ipopt.opt. Best, Stefan -- Stefan Vigerske Humboldt University Berlin, Numerical Mathematics http://www.math.hu-berlin.de/~stefan