ʻOhana
Population structure, admixture history, and selection using learning methods.
Public Types | Public Member Functions | Data Fields | Static Public Attributes
jade::basic_simplex< TValue >::execute_args Struct Reference

Arguments to the execute method. More...

#include <jade.simplex.hpp>

+ Collaboration diagram for jade::basic_simplex< TValue >::execute_args:

Public Types

typedef void(* logfunc_type) (const log_args &)
 The C-style log function. More...
 

Public Member Functions

 execute_args ()
 Initializes a new instance of the class. More...
 
bool is_logfunc_assigned () const
 
bool is_max_iterations_assigned () const
 
bool is_max_seconds_assigned () const
 
bool is_min_delta_assigned () const
 
bool is_min_epsilon_assigned () const
 
bool is_min_length_assigned () const
 
std::string str () const
 

Data Fields

logfunc_type logfunc
 The logging function. More...
 
size_t max_iterations
 The maximum iterations. More...
 
double max_seconds
 The maximum seconds. More...
 
value_type min_delta
 The minimum delta. More...
 
value_type min_epsilon
 The minimum change in objval. More...
 
value_type min_length
 The minimum length. More...
 
void * user
 User-supplied value. More...
 

Static Public Attributes

static constexpr auto no_max_iterations
 The value assigned for no maximum iterations. More...
 
static constexpr auto no_max_seconds
 The value assigned for no maximum seconds. More...
 
static constexpr auto no_min_delta
 The value assigned for no minimum delta. More...
 
static constexpr auto no_min_epsilon
 The value assigned for no minimum epsilon. More...
 
static constexpr auto no_min_length
 The value assigned for no minimum length. More...
 

Detailed Description

template<typename TValue>
struct jade::basic_simplex< TValue >::execute_args

Arguments to the execute method.

Definition at line 156 of file jade.simplex.hpp.

Member Typedef Documentation

◆ logfunc_type

template<typename TValue >
typedef void(* jade::basic_simplex< TValue >::execute_args::logfunc_type) (const log_args &)

The C-style log function.

Definition at line 159 of file jade.simplex.hpp.

Constructor & Destructor Documentation

◆ execute_args()

template<typename TValue >
jade::basic_simplex< TValue >::execute_args::execute_args ( )
inline

Initializes a new instance of the class.

Definition at line 192 of file jade.simplex.hpp.

193  : logfunc (nullptr)
199  , user (nullptr)
200  {
201  }

Member Function Documentation

◆ is_logfunc_assigned()

template<typename TValue >
bool jade::basic_simplex< TValue >::execute_args::is_logfunc_assigned ( ) const
inline
Returns
True if the logging function is assigned.

Definition at line 206 of file jade.simplex.hpp.

207  {
208  return logfunc != nullptr;
209  }
+ Here is the caller graph for this function:

◆ is_max_iterations_assigned()

template<typename TValue >
bool jade::basic_simplex< TValue >::execute_args::is_max_iterations_assigned ( ) const
inline
Returns
True if the maximum iterations is assigned.

Definition at line 214 of file jade.simplex.hpp.

215  {
217  }
+ Here is the caller graph for this function:

◆ is_max_seconds_assigned()

template<typename TValue >
bool jade::basic_simplex< TValue >::execute_args::is_max_seconds_assigned ( ) const
inline
Returns
True if the maximum seconds is assigned.

Definition at line 222 of file jade.simplex.hpp.

223  {
224  return !std::isnan(max_seconds);
225  }
+ Here is the caller graph for this function:

◆ is_min_delta_assigned()

template<typename TValue >
bool jade::basic_simplex< TValue >::execute_args::is_min_delta_assigned ( ) const
inline
Returns
True if the minimum delta is assigned.

Definition at line 230 of file jade.simplex.hpp.

231  {
232  return !std::isnan(min_delta);
233  }
+ Here is the caller graph for this function:

◆ is_min_epsilon_assigned()

template<typename TValue >
bool jade::basic_simplex< TValue >::execute_args::is_min_epsilon_assigned ( ) const
inline
Returns
True if the minimum epsilon is assigned.

Definition at line 238 of file jade.simplex.hpp.

239  {
240  return !std::isnan(min_epsilon);
241  }
+ Here is the caller graph for this function:

◆ is_min_length_assigned()

template<typename TValue >
bool jade::basic_simplex< TValue >::execute_args::is_min_length_assigned ( ) const
inline
Returns
True if the minimum length is assigned.

Definition at line 246 of file jade.simplex.hpp.

247  {
248  return !std::isnan(min_length);
249  }
+ Here is the caller graph for this function:

◆ str()

template<typename TValue >
std::string jade::basic_simplex< TValue >::execute_args::str ( ) const
inline
Returns
A string representation of the class.

Definition at line 254 of file jade.simplex.hpp.

255  {
256  std::ostringstream out;
257  out << "logfunc: "
258  << _str(logfunc != nullptr, "assigned")
259  << std::endl
260  << "user: "
261  << _str(user != nullptr, "assigned")
262  << std::endl
263  << "max_iteration: "
265  << std::endl
266  << "max_second: "
268  << std::endl
269  << "min_delta: "
270  << _str(is_min_delta_assigned(), min_delta)
271  << std::endl
272  << "min_epsilon: "
274  << std::endl
275  << "min_length: "
277  << std::endl;
278  return out.str();
279  }
+ Here is the call graph for this function:

Field Documentation

◆ logfunc

template<typename TValue >
logfunc_type jade::basic_simplex< TValue >::execute_args::logfunc

The logging function.

Definition at line 181 of file jade.simplex.hpp.

◆ max_iterations

template<typename TValue >
size_t jade::basic_simplex< TValue >::execute_args::max_iterations

The maximum iterations.

Definition at line 182 of file jade.simplex.hpp.

◆ max_seconds

template<typename TValue >
double jade::basic_simplex< TValue >::execute_args::max_seconds

The maximum seconds.

Definition at line 183 of file jade.simplex.hpp.

◆ min_delta

template<typename TValue >
value_type jade::basic_simplex< TValue >::execute_args::min_delta

The minimum delta.

Definition at line 184 of file jade.simplex.hpp.

◆ min_epsilon

template<typename TValue >
value_type jade::basic_simplex< TValue >::execute_args::min_epsilon

The minimum change in objval.

Definition at line 185 of file jade.simplex.hpp.

◆ min_length

template<typename TValue >
value_type jade::basic_simplex< TValue >::execute_args::min_length

The minimum length.

Definition at line 186 of file jade.simplex.hpp.

◆ no_max_iterations

template<typename TValue >
constexpr auto jade::basic_simplex< TValue >::execute_args::no_max_iterations
staticconstexpr
Initial value:
=
std::numeric_limits<size_t>::max()

The value assigned for no maximum iterations.

Definition at line 162 of file jade.simplex.hpp.

◆ no_max_seconds

template<typename TValue >
constexpr auto jade::basic_simplex< TValue >::execute_args::no_max_seconds
staticconstexpr
Initial value:
=
std::numeric_limits<double>::quiet_NaN()

The value assigned for no maximum seconds.

Definition at line 166 of file jade.simplex.hpp.

◆ no_min_delta

template<typename TValue >
constexpr auto jade::basic_simplex< TValue >::execute_args::no_min_delta
staticconstexpr
Initial value:
=
std::numeric_limits<value_type>::quiet_NaN()

The value assigned for no minimum delta.

Definition at line 170 of file jade.simplex.hpp.

◆ no_min_epsilon

template<typename TValue >
constexpr auto jade::basic_simplex< TValue >::execute_args::no_min_epsilon
staticconstexpr
Initial value:
=
std::numeric_limits<value_type>::quiet_NaN()

The value assigned for no minimum epsilon.

Definition at line 174 of file jade.simplex.hpp.

◆ no_min_length

template<typename TValue >
constexpr auto jade::basic_simplex< TValue >::execute_args::no_min_length
staticconstexpr
Initial value:
=
std::numeric_limits<value_type>::quiet_NaN()

The value assigned for no minimum length.

Definition at line 178 of file jade.simplex.hpp.

◆ user

template<typename TValue >
void* jade::basic_simplex< TValue >::execute_args::user

User-supplied value.

Definition at line 187 of file jade.simplex.hpp.


The documentation for this struct was generated from the following file:
jade::basic_simplex::execute_args::is_min_epsilon_assigned
bool is_min_epsilon_assigned() const
Definition: jade.simplex.hpp:238
jade::basic_simplex::execute_args::min_length
value_type min_length
The minimum length.
Definition: jade.simplex.hpp:186
jade::basic_simplex::execute_args::no_min_delta
static constexpr auto no_min_delta
The value assigned for no minimum delta.
Definition: jade.simplex.hpp:170
jade::basic_simplex::execute_args::is_min_length_assigned
bool is_min_length_assigned() const
Definition: jade.simplex.hpp:246
jade::basic_simplex::execute_args::no_min_epsilon
static constexpr auto no_min_epsilon
The value assigned for no minimum epsilon.
Definition: jade.simplex.hpp:174
jade::basic_simplex::execute_args::user
void * user
User-supplied value.
Definition: jade.simplex.hpp:187
jade::basic_simplex::execute_args::no_max_iterations
static constexpr auto no_max_iterations
The value assigned for no maximum iterations.
Definition: jade.simplex.hpp:162
jade::basic_simplex::execute_args::min_epsilon
value_type min_epsilon
The minimum change in objval.
Definition: jade.simplex.hpp:185
jade::basic_simplex::execute_args::max_seconds
double max_seconds
The maximum seconds.
Definition: jade.simplex.hpp:183
jade::basic_simplex::execute_args::is_min_delta_assigned
bool is_min_delta_assigned() const
Definition: jade.simplex.hpp:230
jade::basic_simplex::execute_args::max_iterations
size_t max_iterations
The maximum iterations.
Definition: jade.simplex.hpp:182
jade::basic_simplex::execute_args::logfunc
logfunc_type logfunc
The logging function.
Definition: jade.simplex.hpp:181
jade::basic_simplex::execute_args::is_max_iterations_assigned
bool is_max_iterations_assigned() const
Definition: jade.simplex.hpp:214
jade::basic_simplex::execute_args::is_max_seconds_assigned
bool is_max_seconds_assigned() const
Definition: jade.simplex.hpp:222
jade::basic_simplex::execute_args::min_delta
value_type min_delta
The minimum delta.
Definition: jade.simplex.hpp:184
jade::basic_simplex::execute_args::no_max_seconds
static constexpr auto no_max_seconds
The value assigned for no maximum seconds.
Definition: jade.simplex.hpp:166
jade::basic_simplex::execute_args::no_min_length
static constexpr auto no_min_length
The value assigned for no minimum length.
Definition: jade.simplex.hpp:178