Solves the optimization problem with SNOPT version 7.5 and below. More...
#include <snopt_adapter.h>
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_ |
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.
ifopt::SnoptAdapter::SnoptAdapter | ( | Problem & | nlp | ) |
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] |
void ifopt::SnoptAdapter::Init | ( | ) |
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.
void ifopt::SnoptAdapter::SetVariables | ( | ) |
Definition at line 161 of file snopt_adapter.cc.
SnoptAdapter::NLPPtr ifopt::SnoptAdapter::nlp_ [static, private] |
Definition at line 72 of file snopt_adapter.h.