LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
objective Class Reference

THis class represents the objective function class that calculates the score of a solution. More...

#include <objective.h>

Inheritance diagram for objective:
Inheritance graph
[legend]
Collaboration diagram for objective:
Collaboration graph
[legend]

Public Member Functions

virtual double score (comp *invals)=0
virtual std::vector< std::stringdependencies () const =0
virtual void postprocess (input &inval)=0
- Public Member Functions inherited from item_dim
size_t get_dimension () const
- Public Member Functions inherited from item
 item ()
virtual ~item ()
virtual void print () const
 Standard print function.
virtual void update ()
virtual std::string type () const =0
void setname (const std::string n)
void set_write_name (std::string wname)
const std::stringname () const
const std::stringwrite_name () const

Additional Inherited Members

- Static Public Member Functions inherited from item
static std::shared_ptr< itemcreate (std::string name, engineimp *rval)
- Public Attributes inherited from item
engineimpholder
- Protected Member Functions inherited from item_dim
void print_upstream ()
virtual void _do_mem_update (size_t dim_old)
void add_as_parent (item_dim *p)
void add_as_parent (std::shared_ptr< item_dim > p)
void update_dim (size_t dim_new)
- Protected Attributes inherited from item_dim
mempool memp
std::set< item_dim * > children
item_dimparent
size_t dimension

Detailed Description

THis class represents the objective function class that calculates the score of a solution.

Definition at line 22 of file objective.h.

Member Function Documentation

std::vector< std::string > objective::dependencies ( ) const
pure virtual

This function returns the dependencies of the objective class which are only the dependencies of item_dim

Returns
Dependencies of item_dim
See Also
item_dim::dependencies

Implements item_dim.

Implemented in n_pulse_score.

Definition at line 25 of file objective.cpp.

Here is the caller graph for this function:

void objective::postprocess ( input invals)
pure virtual

This does the postprocessing for objective, which simply calls item_dim::postprocess

Parameters
invalsThe map containing the postprocessed values
See Also
item_dim::postprocessing

Reimplemented from item_dim.

Implemented in n_pulse_score.

Definition at line 34 of file objective.cpp.

virtual double objective::score ( comp invals)
pure virtual

Implemented in n_pulse_score.

Here is the caller graph for this function:


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