SNOPT options: major iterations limit

189 views
Skip to first unread message

crist...@gmail.com

unread,
Sep 20, 2015, 10:31:29 PM9/20/15
to AMPL Modeling Language
Hi,

I am solving a nonlinear model with SNOPT and I get that the optimizer reaches the major iterations limit. This option is not included in the options that I can input to SNOPT with "options snopt_options" AMPL interface. Nevertheless, this option can be modified with a SNOPT specs file. Does anyone know how to input a SNOPT spec file in AMPL?

Thank you very much.

Cristian Hernandez 

Michael Saunders

unread,
Sep 21, 2015, 12:52:11 PM9/21/15
to am...@googlegroups.com
Hi Cristian,

My understanding is that any options in a specs file can be
including in the options statement.  For example:

   options snopt_options  '\
      major_iterations=500 \
      scale_option=0          \
      LU_factor_tol=2.0     \
';

Good luck,
Michael


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

victor.z...@gmail.com

unread,
Sep 21, 2015, 1:02:12 PM9/21/15
to am...@googlegroups.com
Hi Cristian,

You should be able to set the number of iterations via the iterations option as described here:

  option snopt_options 'iterations=200';

HTH,
Victor

--

Michael Saunders

unread,
Sep 21, 2015, 1:18:36 PM9/21/15
to am...@googlegroups.com
Hi again Cristian,

Victor's example is in agreement.
I wanted to add that for convenience you can use * as a comment character:

   options snopt_options  '\
      major_iterations=500 \
      scale_option=0          \
      *LU_factor_tol=2.0     \
';

This comments out the last option.
Michael

Reply all
Reply to author
Forward
0 new messages