Vita
Public Member Functions | Public Attributes | List of all members
vita::problem Class Reference

Aggregates the problem-related data needed by an evolutionary program. More...

#include <problem.h>

Inherited by vita::de_problem, vita::ga_problem, and vita::src_problem.

Public Member Functions

template<class S , class ... Args>
symbolinsert (Args &&... args)
 Adds a symbol to the internal symbol set. More...
 
template<class S , class ... Args>
symbolinsert (Args &&...)
 
virtual bool is_valid () const
 
 problem ()
 A new problem. More...
 

Public Attributes

environment env
 
symbol_set sset
 

Detailed Description

Aggregates the problem-related data needed by an evolutionary program.

Definition at line 23 of file problem.h.

Constructor & Destructor Documentation

◆ problem()

vita::problem::problem ( )

A new problem.

Definition at line 20 of file problem.cc.

Member Function Documentation

◆ insert()

template<class S , class ... Args>
symbol * vita::problem::insert ( Args &&...  args)

Adds a symbol to the internal symbol set.

Template Parameters
Ssymbol to be added
Parameters
[in]argsarguments used to build S
Returns
a raw pointer to the symbol just added (or nullptr in case of error)

Definition at line 46 of file problem.h.

◆ is_valid()

bool vita::problem::is_valid ( ) const
virtual
Returns
true if the object passes the internal consistency check

Reimplemented in vita::src_problem.

Definition at line 27 of file problem.cc.

Member Data Documentation

◆ env

environment vita::problem::env
Examples
rastrigin.cc.

Definition at line 34 of file problem.h.

◆ sset

symbol_set vita::problem::sset

Definition at line 35 of file problem.h.


The documentation for this class was generated from the following files: