31 const std::function< Scalar (DerivedX &) > f,
32 const Eigen::MatrixBase<DerivedLB> & LB,
33 const Eigen::MatrixBase<DerivedUB> & UB,
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,
57#ifndef IGL_STATIC_LIBRARY
#define IGL_INLINE
Definition igl_inline.h:15
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.