Public Member Functions | Static Public Member Functions | Static Private Attributes
ifopt::SnoptAdapter Class Reference

Solves the optimization problem with SNOPT version 7.5 and below. More...

#include <snopt_adapter.h>

List of all members.

Public Member Functions

void Init ()
void SetVariables ()
 SnoptAdapter (Problem &nlp)
 Creates an Adapter Object around the problem to conform to the Snopt interface.
virtual ~SnoptAdapter ()

Static Public Member Functions

static void ObjectiveAndConstraintFct (int *Status, int *n, double x[], int *needF, int *neF, double F[], int *needG, int *neG, double G[], char *cu, int *lencu, int iu[], int *leniu, double ru[], int *lenru)

Static Private Attributes

static NLPPtr nlp_

Detailed Description

Solves the optimization problem with SNOPT version 7.5 and below.

If you have a newer version of SNOPT installed, use snopt_adapter_76.h.

Given an optimization Problem with variables, costs and constraints, this class wraps it and makes it conform with the interface defined by SNOPT http://web.stanford.edu/group/SOL/guides/sndoc7.pdf

This implements the Adapter pattern. This class should not add any functionality, but merely delegate it to the Adaptee (the Problem object).

Definition at line 48 of file snopt_adapter.h.


Constructor & Destructor Documentation

Creates an Adapter Object around the problem to conform to the Snopt interface.

Definition at line 33 of file snopt_adapter.cc.

virtual ifopt::SnoptAdapter::~SnoptAdapter ( ) [virtual]

Member Function Documentation

Definition at line 39 of file snopt_adapter.cc.

void ifopt::SnoptAdapter::ObjectiveAndConstraintFct ( int *  Status,
int *  n,
double  x[],
int *  needF,
int *  neF,
double  F[],
int *  needG,
int *  neG,
double  G[],
char *  cu,
int *  lencu,
int  iu[],
int *  leniu,
double  ru[],
int *  lenru 
) [static]

Definition at line 125 of file snopt_adapter.cc.

Definition at line 161 of file snopt_adapter.cc.


Member Data Documentation

SnoptAdapter::NLPPtr ifopt::SnoptAdapter::nlp_ [static, private]

Definition at line 72 of file snopt_adapter.h.


The documentation for this class was generated from the following files:


ifopt
Author(s): Alexander W. Winkler
autogenerated on Sat May 18 2019 02:43:08