RockyML  0.0.1
A High-Performance Scientific Computing Framework
rocky::zagros::dena::run Class Reference

factories for composable flows More...

#include <dena.h>

Static Public Member Functions

static flow n_times (int iters, const flow &wrapped_flow)
 run the wrapped flow n times [todo] there is a problem with the last node More...
 
static flow with_probability (float prob, const flow &wrapped_flow)
 run a flow with a specified probability More...
 
static flow every_n_steps (int n, const flow &wrapped_flow)
 run a flow with given period More...
 
static flow while_improve (std::string id, int n, const flow &wrapped_flow)
 run a flow until the best solution of a container does not improve More...
 
static flow while_improve (int n, const flow &wrapped_flow)
 run a flow until the best solution does not improve More...
 
static flow while_improve (const flow &wrapped_flow)
 run a flow until the best solution does not improve More...
 

Detailed Description

factories for composable flows

Member Function Documentation

◆ every_n_steps()

static flow rocky::zagros::dena::run::every_n_steps ( int  n,
const flow wrapped_flow 
)
inlinestatic

run a flow with given period

Parameters
nthe period of running the flow
wrapped_flow
Returns
* flow

◆ n_times()

static flow rocky::zagros::dena::run::n_times ( int  iters,
const flow wrapped_flow 
)
inlinestatic

run the wrapped flow n times [todo] there is a problem with the last node

Parameters
itersint number of iterations
wrapped_flowtarget flow for running
Returns
* flow

◆ while_improve() [1/3]

static flow rocky::zagros::dena::run::while_improve ( const flow wrapped_flow)
inlinestatic

run a flow until the best solution does not improve

Parameters
wrapped_flow
Returns
* flow

◆ while_improve() [2/3]

static flow rocky::zagros::dena::run::while_improve ( int  n,
const flow wrapped_flow 
)
inlinestatic

run a flow until the best solution does not improve

Parameters
nmaximum number of waiting before termination
wrapped_flow
Returns
* flow

◆ while_improve() [3/3]

static flow rocky::zagros::dena::run::while_improve ( std::string  id,
int  n,
const flow wrapped_flow 
)
inlinestatic

run a flow until the best solution of a container does not improve

Parameters
idthe id of the target container
nmaximum number of waiting before termination
wrapped_flow
Returns
* flow

◆ with_probability()

static flow rocky::zagros::dena::run::with_probability ( float  prob,
const flow wrapped_flow 
)
inlinestatic

run a flow with a specified probability

Parameters
probthe probability of running the flow
wrapped_flow
Returns
* flow

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