Solves the optimization problem with SNOPT version 7.5 and below. More...
#include <snopt_adapter.h>
Public Types | |
using | Jacobian = Problem::Jacobian |
using | NLPPtr = Problem * |
using | VectorXd = Problem::VectorXd |
Public Member Functions | |
void | Init () |
void | SetVariables () |
SnoptAdapter (Problem &nlp) | |
Creates an Adapter Object around the problem to conform to the Snopt interface. More... | |
virtual | ~SnoptAdapter ()=default |
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.
Definition at line 52 of file snopt_adapter.h.
using ifopt::SnoptAdapter::NLPPtr = Problem* |
Definition at line 50 of file snopt_adapter.h.
Definition at line 51 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.
|
virtualdefault |
void ifopt::SnoptAdapter::Init | ( | ) |
Definition at line 39 of file snopt_adapter.cc.
|
static |
Definition at line 125 of file snopt_adapter.cc.
void ifopt::SnoptAdapter::SetVariables | ( | ) |
Definition at line 161 of file snopt_adapter.cc.
|
staticprivate |
Definition at line 72 of file snopt_adapter.h.