41 if(!std::isfinite(f) || !std::isfinite(gnorm)) {
42 spdlog::error(
"Invalid optimization: initial value: {}, gradient norm: {}", f, gnorm);
Class that models an optimization objective.
An integer-like type that represents categorical values.
MinimizationResult run(objective::Objective &objective, Eigen::Ref< DenseRealVector > init) override
NullOptimizer(bool calc)
Constructor, specifies whether to run any calculations at all.
DenseRealVector m_Gradient
void declare_tag(tag_id_t index, std::string name)
Declares a new tag. This function just forwards all its arguments to the internal StatisticsCollectio...
void set_tag(tag_id_t tag, long value)
Set value of tag. This function just forwards all its arguments to the internal StatisticsCollection.
constexpr const dismec::stats::tag_id_t TAG_ITERATION
@ FAILED
Some internal operation failed.
@ SUCCESS
The returned result is a minimum according to the stopping criterion of the algorithm.
types::DenseVector< real_t > DenseRealVector
Any dense, real values vector.
float real_t
The default type for floating point values.