@@ -61,57 +61,57 @@ npe_end_code()
6161
6262
6363
64- const char *ds_psop = R"igl_Qu8mg5v7ssp(
65- Solve the problem:
66-
67- minimize f (x)
68- subject to lb ≤ x ≤ ub
69-
70- by particle swarm optimization (PSO).
71-
72-
73- Parameters
74- ----------
75- f function that evaluates the objective for a given "particle" location
76- LB #X vector of lower bounds
77- UB #X vector of upper bounds
78- P whether each DOF is periodic
79- max_iters maximum number of iterations
80- population number of particles in swarm
81-
82- Returns
83- -------
84- X best particle seen so far
85- Returns objective corresponding to best particle seen so far
86-
87- See also
88- --------
89-
90-
91- Notes
92- -----
93- None
94-
95- Examples
96- --------
97-
98- )igl_Qu8mg5v7ssp";
99-
100- npe_function (pso_periodic)
101- npe_doc(ds_psop)
102-
103- npe_arg(f, const std::function< typename EigenDenseFloat::Scalar (Eigen::Matrix<typename EigenDenseFloat::Scalar, Eigen::Dynamic, 1 > &) >)
104- npe_arg(lb, EigenDenseFloat)
105- npe_arg(ub, EigenDenseFloat)
106- npe_arg(p, EigenDenseFloat)
107- npe_arg(max_iters, int )
108- npe_arg(population, int )
109-
110-
111- npe_begin_code()
112- Eigen::Matrix<typename EigenDenseFloat::Scalar, Eigen::Dynamic, 1> x_copy;
113- const auto obj = igl::pso(f, lb, ub, p, max_iters, population, x_copy);
114- EigenDenseFloat x = x_copy;
115- return std::make_tuple(obj, npe::move(x));
116-
117- npe_end_code ()
64+ // const char *ds_psop = R"igl_Qu8mg5v7ssp(
65+ // Solve the problem:
66+ //
67+ // minimize f(x)
68+ // subject to lb ≤ x ≤ ub
69+ //
70+ // by particle swarm optimization (PSO).
71+ //
72+ //
73+ // Parameters
74+ // ----------
75+ // f function that evaluates the objective for a given "particle" location
76+ // LB #X vector of lower bounds
77+ // UB #X vector of upper bounds
78+ // P whether each DOF is periodic
79+ // max_iters maximum number of iterations
80+ // population number of particles in swarm
81+ //
82+ // Returns
83+ // -------
84+ // X best particle seen so far
85+ // Returns objective corresponding to best particle seen so far
86+ //
87+ // See also
88+ // --------
89+ //
90+ //
91+ // Notes
92+ // -----
93+ // None
94+ //
95+ // Examples
96+ // --------
97+ //
98+ // )igl_Qu8mg5v7ssp";
99+
100+ // npe_function(pso_periodic)
101+ // npe_doc(ds_psop)
102+ //
103+ // npe_arg(f, const std::function< typename EigenDenseFloat::Scalar (Eigen::Matrix<typename EigenDenseFloat::Scalar, Eigen::Dynamic, 1> &) >)
104+ // npe_arg(lb, EigenDenseFloat)
105+ // npe_arg(ub, EigenDenseFloat)
106+ // npe_arg(p, EigenDenseFloat) //SHOULD BE BOOLEAN, BUT IS NOT USED ANYWAYS
107+ // npe_arg(max_iters, int)
108+ // npe_arg(population, int)
109+ //
110+ //
111+ // npe_begin_code()
112+ // Eigen::Matrix<typename EigenDenseFloat::Scalar, Eigen::Dynamic, 1> x_copy;
113+ // const auto obj = igl::pso(f, lb, ub, p, max_iters, population, x_copy);
114+ // EigenDenseFloat x = x_copy;
115+ // return std::make_tuple(obj, npe::move(x));
116+ //
117+ // npe_end_code()
0 commit comments