MAST
MAST::NLOptOptimizationInterface Class Reference

#include <nlopt_optimization_interface.h>

Inheritance diagram for MAST::NLOptOptimizationInterface:
Collaboration diagram for MAST::NLOptOptimizationInterface:

Public Member Functions

 NLOptOptimizationInterface (nlopt_algorithm alg)
 
virtual ~NLOptOptimizationInterface ()
 
virtual void optimize ()
 
Real objective_evaluation (unsigned n, const double *x, double *grad)
 Computes and. More...
 
void inequality_constraint_evaluation (unsigned m, double *result, unsigned n, const double *x, double *gradient)
 Computes the m inequality constraints and. More...
 
- Public Member Functions inherited from MAST::OptimizationInterface
 OptimizationInterface ()
 
virtual ~OptimizationInterface ()
 
virtual void attach_function_evaluation_object (MAST::FunctionEvaluation &feval)
 
virtual void set_real_parameter (const std::string &nm, Real val)
 
virtual void set_integer_parameter (const std::string &nm, int val)
 

Protected Attributes

unsigned int _iter
 
nlopt_algorithm _alg
 NLOpt algorithm to use. More...
 
- Protected Attributes inherited from MAST::OptimizationInterface
MAST::FunctionEvaluation_feval
 

Detailed Description

Definition at line 31 of file nlopt_optimization_interface.h.

Constructor & Destructor Documentation

MAST::NLOptOptimizationInterface::NLOptOptimizationInterface ( nlopt_algorithm  alg)

Definition at line 57 of file nlopt_optimization_interface.cpp.

virtual MAST::NLOptOptimizationInterface::~NLOptOptimizationInterface ( )
inlinevirtual

Definition at line 37 of file nlopt_optimization_interface.h.

Here is the call graph for this function:

Member Function Documentation

void MAST::NLOptOptimizationInterface::inequality_constraint_evaluation ( unsigned  m,
double *  result,
unsigned  n,
const double *  x,
double *  gradient 
)

Computes the m inequality constraints and.

Returns
them in result for the design variable vector x of size n. If gradient is a non-null vector, then the gradients are calculated and returned in this vector such that $ \partial f_i/\partial x_j$ is stored in grad[i*n + j].

Definition at line 183 of file nlopt_optimization_interface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Real MAST::NLOptOptimizationInterface::objective_evaluation ( unsigned  n,
const double *  x,
double *  grad 
)

Computes and.

Returns
the value of the objective function for the specified design variable vector x of dimension n. If grad is non-null then the gradient of the objective function is returned in this vector.

Definition at line 143 of file nlopt_optimization_interface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MAST::NLOptOptimizationInterface::optimize ( )
virtual

Implements MAST::OptimizationInterface.

Definition at line 66 of file nlopt_optimization_interface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

nlopt_algorithm MAST::NLOptOptimizationInterface::_alg
protected

NLOpt algorithm to use.

Definition at line 75 of file nlopt_optimization_interface.h.

unsigned int MAST::NLOptOptimizationInterface::_iter
protected

Definition at line 70 of file nlopt_optimization_interface.h.


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