Samchon Framework for CPP  1.0.0
samchon::examples::tsp::Scheduler Class Reference

A scheduler. More...

#include <Scheduler.hpp>

Collaboration diagram for samchon::examples::tsp::Scheduler:

Public Member Functions

 Scheduler ()
 Default Constructor. More...
 
 Scheduler (shared_ptr< Travel > travel, const struct GAParameters &gaParameteres)
 Construct from points and parameter of genetic algorithm. More...
 
auto optimize () -> shared_ptr< Travel >
 Derive optimized schedule. More...
 
- Public Member Functions inherited from samchon::protocol::Entity<>
virtual auto key () const -> std::string
 Get a key that can identify the Entity uniquely. More...
 

Protected Attributes

shared_ptr< Traveltravel
 A travel to optimize or optimized. More...
 
struct GAParameters gaParameters
 Parameters for Genetic-Algorithm. More...
 

Detailed Description

A scheduler.

Scheduler deducts an optimal schdule(Travel) by genetic algorithm.

Author
Jeongho Nam http://samchon.org

Definition at line 44 of file Scheduler.hpp.

Constructor & Destructor Documentation

samchon::examples::tsp::Scheduler::Scheduler ( )
inline

Default Constructor.

Definition at line 68 of file Scheduler.hpp.

samchon::examples::tsp::Scheduler::Scheduler ( shared_ptr< Travel travel,
const struct GAParameters gaParameteres 
)
inline

Construct from points and parameter of genetic algorithm.

Definition at line 78 of file Scheduler.hpp.

Member Function Documentation

auto samchon::examples::tsp::Scheduler::optimize ( ) -> shared_ptr<Travel>
inline

Derive optimized schedule.

Returns
An optimized travel schedule.

Definition at line 105 of file Scheduler.hpp.

References samchon::library::GeneticAlgorithm< GeneArray, Compare >::evolveGeneArray(), and optimize().

Referenced by optimize().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

shared_ptr<Travel> samchon::examples::tsp::Scheduler::travel
protected

A travel to optimize or optimized.

Definition at line 54 of file Scheduler.hpp.

struct GAParameters samchon::examples::tsp::Scheduler::gaParameters
protected

Parameters for Genetic-Algorithm.

Definition at line 59 of file Scheduler.hpp.


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