#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 | 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::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::~NLoptSolver |
( |
| ) |
|
◆ EqualityConstraintCost()
void NLoptSolver::EqualityConstraintCost |
( |
double * |
g | ) |
|
◆ EqualityConstraintGradient()
void NLoptSolver::EqualityConstraintGradient |
( |
double * |
dg | ) |
|
|
private |
◆ EqualityConstraintWrapper()
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.
◆ InequalityConstraintCost()
void NLoptSolver::InequalityConstraintCost |
( |
double * |
h | ) |
|
◆ InequalityConstraintGradient()
void NLoptSolver::InequalityConstraintGradient |
( |
double * |
dh | ) |
|
|
private |
不等式制約条件の勾配
不等式制約条件を縦に並べたベクトルの勾配を計算する
- Parameters
-
[out] | dh | 不等式制約条件を縦に並べたベクトルの勾配 |
Definition at line 325 of file nlopt_solver.cpp.
◆ InequalityConstraintWrapper()
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.
◆ my_copy()
static void NLoptSolver::my_copy |
( |
double * |
in, |
|
|
double * |
out, |
|
|
int |
size |
|
) |
| |
|
inlinestatic |
◆ my_log() [1/3]
◆ my_log() [2/3]
static void NLoptSolver::my_log |
( |
std::string |
comment, |
|
|
double * |
val, |
|
|
uint |
cnt |
|
) |
| |
|
inlinestatic |
◆ my_log() [3/3]
static void NLoptSolver::my_log |
( |
std::string |
comment, |
|
|
double |
val |
|
) |
| |
|
inlinestatic |
◆ ObjectiveFunctionCost()
double NLoptSolver::ObjectiveFunctionCost |
( |
| ) |
|
◆ ObjectiveFunctionGradient()
void NLoptSolver::ObjectiveFunctionGradient |
( |
double * |
df | ) |
|
|
private |
◆ ObjectiveFunctionWrapper()
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.
◆ Optimize()
int NLoptSolver::Optimize |
( |
| ) |
|
◆ output_result()
void NLoptSolver::output_result |
( |
int |
result | ) |
|
|
inline |
◆ stop()
void NLoptSolver::stop |
( |
| ) |
|
|
inline |
◆ core_solver
nlopt_opt NLoptSolver::core_solver |
|
private |
◆ df
int(*)(*) NLoptSolver::df(double *, double *) |
|
private |
◆ dfbuf
double * NLoptSolver::dfbuf |
◆ dg
int(*)(*) NLoptSolver::dg(double *, double *) |
|
private |
◆ dgbuf
double * NLoptSolver::dgbuf |
◆ dh
int(*)(*) NLoptSolver::dh(double *, double *) |
|
private |
◆ dhbuf
double * NLoptSolver::dhbuf |
int(* NLoptSolver::f) (double *, double *) |
|
private |
◆ fbuf
double* NLoptSolver::fbuf |
◆ frequency
unsigned int NLoptSolver::frequency |
|
private |
int(* NLoptSolver::g) (double *, double *) |
|
private |
◆ gbuf
double * NLoptSolver::gbuf |
int(* NLoptSolver::h) (double *, double *) |
|
private |
◆ hbuf
double * NLoptSolver::hbuf |
◆ iteration
unsigned int NLoptSolver::iteration |
|
private |
◆ m_g
unsigned int NLoptSolver::m_g |
|
private |
◆ m_h
unsigned int NLoptSolver::m_h |
|
private |
◆ m_x
unsigned int NLoptSolver::m_x |
|
private |
◆ n_df
unsigned int NLoptSolver::n_df |
|
private |
◆ n_dg
unsigned int NLoptSolver::n_dg |
|
private |
◆ n_dh
unsigned int NLoptSolver::n_dh |
|
private |
◆ n_f
unsigned int NLoptSolver::n_f |
|
private |
◆ n_g
unsigned int NLoptSolver::n_g |
|
private |
◆ n_h
unsigned int NLoptSolver::n_h |
|
private |
◆ solver
nlopt_opt NLoptSolver::solver |
|
private |
The documentation for this class was generated from the following files: