libigl v2.5.0
Loading...
Searching...
No Matches
pso.h
Go to the documentation of this file.
1#ifndef IGL_PSO_H
2#define IGL_PSO_H
3#include "igl_inline.h"
4#include <Eigen/Core>
5#include <functional>
6
7namespace igl
8{
25 template <
26 typename Scalar,
27 typename DerivedX,
28 typename DerivedLB,
29 typename DerivedUB>
31 const std::function< Scalar (DerivedX &) > f,
32 const Eigen::MatrixBase<DerivedLB> & LB,
33 const Eigen::MatrixBase<DerivedUB> & UB,
34 const int max_iters,
35 const int population,
36 DerivedX & X);
41 template <
42 typename Scalar,
43 typename DerivedX,
44 typename DerivedLB,
45 typename DerivedUB,
46 typename DerivedP>
48 const std::function< Scalar (DerivedX &) > f,
49 const Eigen::MatrixBase<DerivedLB> & LB,
50 const Eigen::MatrixBase<DerivedUB> & UB,
51 const Eigen::DenseBase<DerivedP> & P,
52 const int max_iters,
53 const int population,
54 DerivedX & X);
55}
56
57#ifndef IGL_STATIC_LIBRARY
58# include "pso.cpp"
59#endif
60
61#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
Scalar pso(const std::function< Scalar(DerivedX &) > f, const Eigen::MatrixBase< DerivedLB > &LB, const Eigen::MatrixBase< DerivedUB > &UB, const int max_iters, const int population, DerivedX &X)
Global optimization with the particle swarm algorithm.