MAST
|
#include <nlopt_optimization_interface.h>
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 |
Definition at line 31 of file nlopt_optimization_interface.h.
MAST::NLOptOptimizationInterface::NLOptOptimizationInterface | ( | nlopt_algorithm | alg | ) |
Definition at line 57 of file nlopt_optimization_interface.cpp.
|
inlinevirtual |
Definition at line 37 of file nlopt_optimization_interface.h.
void MAST::NLOptOptimizationInterface::inequality_constraint_evaluation | ( | unsigned | m, |
double * | result, | ||
unsigned | n, | ||
const double * | x, | ||
double * | gradient | ||
) |
Computes the m
inequality constraints and.
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 is stored in grad
[i*n + j]. Definition at line 183 of file nlopt_optimization_interface.cpp.
Real MAST::NLOptOptimizationInterface::objective_evaluation | ( | unsigned | n, |
const double * | x, | ||
double * | grad | ||
) |
Computes and.
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.
|
virtual |
Implements MAST::OptimizationInterface.
Definition at line 66 of file nlopt_optimization_interface.cpp.
|
protected |
NLOpt algorithm to use.
Definition at line 75 of file nlopt_optimization_interface.h.
|
protected |
Definition at line 70 of file nlopt_optimization_interface.h.