Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
21 lines
428 B
C++
21 lines
428 B
C++
#ifndef SIMPLEX_HPP
|
|
#define SIMPLEX_HPP
|
|
|
|
#include "nlopt_boilerplate.hpp"
|
|
|
|
namespace libnest2d { namespace opt {
|
|
|
|
class SimplexOptimizer: public NloptOptimizer {
|
|
public:
|
|
inline explicit SimplexOptimizer(const StopCriteria& scr = {}):
|
|
NloptOptimizer(method2nloptAlg(Method::L_SIMPLEX), scr) {}
|
|
};
|
|
|
|
template<>
|
|
struct OptimizerSubclass<Method::L_SIMPLEX> { using Type = SimplexOptimizer; };
|
|
|
|
}
|
|
}
|
|
|
|
#endif // SIMPLEX_HPP
|