This section describes some examples of using the SNOPT solver, each consists of the main program, the funobj and funcon subroutines, the data subroutine, and the SPECS file.
The Hexagon problem
the main program snmain.f
the subroutine funobj.f
the subroutine funcon.f
the subroutine HexDat.f
the SPECS file snmain.spc
The Toy problem
the main program sntoy.f
the subroutine funobj.f
the subroutine funcon.f
the subroutine ToyDat.f
the SPECS file sntoy.spc
The Maxi problem
the main program maxi.f
the subroutine funobj.f
the subroutine funcon.f
the subroutine mxdata.f
the subroutine funmax.f
the SPECS file maxi.spc
The Spring problem
the main program spring.f
the subroutine SprObj.f
the subroutine SprCon.f
the subroutine sprdata.f
the SPECS file spring.spc