MinLCA algorithms
Public Member Functions | Protected Types | Protected Attributes | List of all members
minlca::MinLCAOptProfiler< LCAOpt > Class Template Reference

Class for timing MinLCA optimisation algorithms. More...

#include <optimisation-profiler.hh>

Inheritance diagram for minlca::MinLCAOptProfiler< LCAOpt >:
[legend]
Collaboration diagram for minlca::MinLCAOptProfiler< LCAOpt >:
[legend]

Public Member Functions

template<typename... Args>
 MinLCAOptProfiler (Args &&...args)
 Constructor. More...
 
virtual void initialSolution (const typename LCAOpt::Colouring &c)
 
double initialSolutionTime ()
 Retrieve the duration of setting the initial solution. More...
 
- Public Member Functions inherited from minlca::MinLCAProfiler< LCAOpt >
 MinLCAProfiler (Args &&...args)
 Constructor. More...
 
void init (Args &&...args)
 
virtual MinLCAStatus run ()
 
double runTime ()
 Retrieve the duration of running the algorithm. More...
 
double initTime ()
 Retrieve the duration of initialising the algorithm. More...
 
double creationTime ()
 Retrieve the duration of instantiating the algorithm class. More...
 

Protected Types

typedef MinLCAProfiler< LCAOpt > ProfilerBase
 Base profiler.
 
typedef LCAOpt Base
 Base MinLCA class.
 
- Protected Types inherited from minlca::MinLCAProfiler< LCAOpt >
typedef LCAOpt Base
 

Protected Attributes

double _initial_sol_time
 Duration of setting initial solution.
 
- Protected Attributes inherited from minlca::MinLCAProfiler< LCAOpt >
utils::Timer _t
 Timer used to count the durations.
 
double _creation_time
 Duration of object creation.
 
double _init_time
 Duration of algorithm initialisation.
 
double _run_time
 Duration of algorithm running.
 

Detailed Description

template<class LCAOpt>
class minlca::MinLCAOptProfiler< LCAOpt >

Class for timing MinLCA optimisation algorithms.

Definition at line 15 of file optimisation-profiler.hh.

Constructor & Destructor Documentation

template<class LCAOpt>
template<typename... Args>
minlca::MinLCAOptProfiler< LCAOpt >::MinLCAOptProfiler ( Args &&...  args)
inline

Constructor.

Parameters
argsArguments for the constructor. They depend on the LCAOpt class.

Definition at line 27 of file optimisation-profiler.hh.

Member Function Documentation

template<class LCAOpt>
double minlca::MinLCAOptProfiler< LCAOpt >::initialSolutionTime ( )
inline

Retrieve the duration of setting the initial solution.

Returns
The duration of setting the initial solution

Definition at line 46 of file optimisation-profiler.hh.


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