#include <nlopt_solver.h>
|
| void | EqualityConstraintCost (double *g) |
| | 等式制約条件 More...
|
| |
| void | InequalityConstraintCost (double *h) |
| | 不等式制約条件 More...
|
| |
| | NLoptSolver (double *x, const double *x_min, const double *x_max, int(*f)(double *, double *), int(*df)(double *, double *), int(*g)(double *, double *), int(*dg)(double *, double *), int(*h)(double *, double *), int(*dh)(double *, double *), int m_x, int m_g, int m_h, double ftol, double xtol, double eqthre, int max_eval, double max_time, Optimization::NLopt::Algorithm algorithm) |
| |
| double | ObjectiveFunctionCost () |
| | 評価関数の和を計算する More...
|
| |
| int | Optimize () |
| |
| void | output_result (int result) |
| |
| void | stop () |
| |
| | ~NLoptSolver () |
| |
|
| static void | my_copy (double *in, double *out, int size) |
| |
| static void | my_log (std::string comment) |
| |
| static void | my_log (std::string comment, double val) |
| |
| static void | my_log (std::string comment, double *val, uint cnt) |
| |
|
| static void | EqualityConstraintWrapper (unsigned int m, double *g, unsigned int n, const double *x, double *dg, void *self) |
| | 等式制約条件のラッパー More...
|
| |
| static void | InequalityConstraintWrapper (unsigned int m, double *h, unsigned int n, const double *x, double *dh, void *self) |
| | 不等式制約条件のラッパー More...
|
| |
| static double | ObjectiveFunctionWrapper (unsigned int n, const double *x, double *df, void *self) |
| | 評価関数のラッパー More...
|
| |
Definition at line 5 of file nlopt_solver.h.
| NLoptSolver::NLoptSolver |
( |
double * |
x, |
|
|
const double * |
x_min, |
|
|
const double * |
x_max, |
|
|
int(*)(double *, double *) |
f, |
|
|
int(*)(double *, double *) |
df, |
|
|
int(*)(double *, double *) |
g, |
|
|
int(*)(double *, double *) |
dg, |
|
|
int(*)(double *, double *) |
h, |
|
|
int(*)(double *, double *) |
dh, |
|
|
int |
m_x, |
|
|
int |
m_g, |
|
|
int |
m_h, |
|
|
double |
ftol, |
|
|
double |
xtol, |
|
|
double |
eqthre, |
|
|
int |
max_eval, |
|
|
double |
max_time, |
|
|
Optimization::NLopt::Algorithm |
algorithm |
|
) |
| |
| NLoptSolver::~NLoptSolver |
( |
| ) |
|
| void NLoptSolver::EqualityConstraintCost |
( |
double * |
g | ) |
|
| void NLoptSolver::EqualityConstraintGradient |
( |
double * |
dg | ) |
|
|
private |
| void NLoptSolver::EqualityConstraintWrapper |
( |
unsigned int |
m, |
|
|
double * |
g, |
|
|
unsigned int |
n, |
|
|
const double * |
x, |
|
|
double * |
dg, |
|
|
void * |
self |
|
) |
| |
|
staticprivate |
等式制約条件のラッパー
等式制約条件のラッピング関数
- Parameters
-
| m | 等式制約条件の次元 |
| g | 等式制約条件 |
| n | 変数の次元 |
| x | 変数 |
| dg | 勾配ベクトル |
| self | thisポインタ |
Definition at line 261 of file nlopt_solver.cpp.
| void NLoptSolver::InequalityConstraintCost |
( |
double * |
h | ) |
|
| void NLoptSolver::InequalityConstraintGradient |
( |
double * |
dh | ) |
|
|
private |
不等式制約条件の勾配
不等式制約条件を縦に並べたベクトルの勾配を計算する
- Parameters
-
| [out] | dh | 不等式制約条件を縦に並べたベクトルの勾配 |
Definition at line 325 of file nlopt_solver.cpp.
| void NLoptSolver::InequalityConstraintWrapper |
( |
unsigned int |
m, |
|
|
double * |
h, |
|
|
unsigned int |
n, |
|
|
const double * |
x, |
|
|
double * |
dh, |
|
|
void * |
self |
|
) |
| |
|
staticprivate |
不等式制約条件のラッパー
不等式制約条件のラッピング関数
- Parameters
-
| m | 不等式制約条件の次元 |
| h | 不等式制約条件 |
| n | 変数の次元 |
| x | 変数 |
| dh | 勾配ベクトル |
| self | thisポインタ |
Definition at line 296 of file nlopt_solver.cpp.
| static void NLoptSolver::my_copy |
( |
double * |
in, |
|
|
double * |
out, |
|
|
int |
size |
|
) |
| |
|
inlinestatic |
| static void NLoptSolver::my_log |
( |
std::string |
comment | ) |
|
|
inlinestatic |
| static void NLoptSolver::my_log |
( |
std::string |
comment, |
|
|
double |
val |
|
) |
| |
|
inlinestatic |
| static void NLoptSolver::my_log |
( |
std::string |
comment, |
|
|
double * |
val, |
|
|
uint |
cnt |
|
) |
| |
|
inlinestatic |
| double NLoptSolver::ObjectiveFunctionCost |
( |
| ) |
|
| void NLoptSolver::ObjectiveFunctionGradient |
( |
double * |
df | ) |
|
|
private |
| double NLoptSolver::ObjectiveFunctionWrapper |
( |
unsigned int |
n, |
|
|
const double * |
x, |
|
|
double * |
df, |
|
|
void * |
self |
|
) |
| |
|
staticprivate |
評価関数のラッパー
評価関数のラッピング関数
- Parameters
-
| n | 変数の次元 |
| x | 変数 |
| df | 勾配ベクトル |
| self | thisポインタ |
- Returns
- 評価値
Definition at line 214 of file nlopt_solver.cpp.
| int NLoptSolver::Optimize |
( |
| ) |
|
| void NLoptSolver::output_result |
( |
int |
result | ) |
|
|
inline |
| void NLoptSolver::stop |
( |
| ) |
|
|
inline |
| nlopt_opt NLoptSolver::core_solver |
|
private |
| int(*)(*) NLoptSolver::df(double *, double *) |
|
private |
| double * NLoptSolver::dfbuf |
| int(*)(*) NLoptSolver::dg(double *, double *) |
|
private |
| double * NLoptSolver::dgbuf |
| int(*)(*) NLoptSolver::dh(double *, double *) |
|
private |
| double * NLoptSolver::dhbuf |
| int(* NLoptSolver::f) (double *, double *) |
|
private |
| double* NLoptSolver::fbuf |
| unsigned int NLoptSolver::frequency |
|
private |
| int(* NLoptSolver::g) (double *, double *) |
|
private |
| double * NLoptSolver::gbuf |
| int(* NLoptSolver::h) (double *, double *) |
|
private |
| double * NLoptSolver::hbuf |
| unsigned int NLoptSolver::iteration |
|
private |
| unsigned int NLoptSolver::m_g |
|
private |
| unsigned int NLoptSolver::m_h |
|
private |
| unsigned int NLoptSolver::m_x |
|
private |
| unsigned int NLoptSolver::n_df |
|
private |
| unsigned int NLoptSolver::n_dg |
|
private |
| unsigned int NLoptSolver::n_dh |
|
private |
| unsigned int NLoptSolver::n_f |
|
private |
| unsigned int NLoptSolver::n_g |
|
private |
| unsigned int NLoptSolver::n_h |
|
private |
| nlopt_opt NLoptSolver::solver |
|
private |
The documentation for this class was generated from the following files: