mlpack / ensmallen

A header-only C++ library for numerical optimization --
http://ensmallen.org
Other
742 stars 120 forks source link

Fix dimensionality of bounds for uses of SchafferFunctionN1 #354

Closed rcurtin closed 1 year ago

rcurtin commented 1 year ago

This fixes #353, where the examples in the documentation used 2-dimensional bounds for SchafferFunctionN1, but SchafferFunctionN1 optimizes only a one-dimensional iterate.

I also changed Front() to ParetoFront() to ensure that the example code compiles.