Subroutines

SNOPT is accessed via the following routines:
 

snInit  Must be called before any other SNOPT routines.

snSpec  May be called to input a SPECS file (a list of run-time options).

snset, snseti, snsetr  May be called to specify a single option.

sngetc, sngeti, sngetr  May be called to obtain an option's current value.

funcon, funobj  Supplied by the user and called by snopt.  They define the constraint  functions F(x) and objective function f(x).

snopt  The main solver.

snMem (In distribution file sn12snzz.f) Computes the size of the workspace arrays cw, iw, rw required for given problem dimensions.  Intended for Fortran 90 drivers that reallocate workspace if necessary.

The user routines funcon and funobj have a fixed parameter list but may have any convenient name.  They are passed to snopt as parameters.

The SNOPT routines are intended to be re-entrant (as long as the Fortran compiler allocates local variables dynamically).  Hence they may be used in a parallel or multi-thread environment.  They may also be called recursively.