Public Types | Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
ifopt::SnoptAdapter Class Reference

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

#include <snopt_adapter.h>

Inheritance diagram for ifopt::SnoptAdapter:
Inheritance graph
[legend]

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_
 

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.

Member Typedef Documentation

Definition at line 52 of file snopt_adapter.h.

Definition at line 50 of file snopt_adapter.h.

Definition at line 51 of file snopt_adapter.h.

Constructor & Destructor Documentation

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 ( )
virtualdefault

Member Function Documentation

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.

Member Data Documentation

SnoptAdapter::NLPPtr ifopt::SnoptAdapter::nlp_
staticprivate

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 Fri Jan 22 2021 03:47:32