LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::opt::LineOptSolverOptions Struct Reference

#include <line/opt/line_opt_solver.h>

Collaboration diagram for line::opt::LineOptSolverOptions:

Public Member Functions

LineOptSolverOptionsset_strategy (std::string value)
LineOptSolverOptionsset_popsize (std::size_t value)
LineOptSolverOptionsset_mutation (double low, double high)
LineOptSolverOptionsset_recombination (double value)
LineOptSolverOptionsset_tolerance (double value)
LineOptSolverOptionsset_max_iterations (std::size_t value)
LineOptSolverOptionsset_time_limit (double value)
LineOptSolverOptionsset_seed (std::uint64_t value)
LineOptSolverOptionsclear_seed ()
LineOptSolverOptionsset_verbose (bool value)
LineOptSolverOptionsset_penalty_weight (double value)
LineOptSolverOptionsset_scenario_aggregation (std::string value)
LineOptSolverOptionsset_optimizer (std::string value)
LineOptSolverOptionsset_fd_step (double value)
LineOptSolverOptionsset_fd_step_layered (double value)
LineOptSolverOptionsset_gradient_restarts (std::size_t value)
LineOptSolverOptionsset_lqn_gradient (std::string value)
LineOptSolverOptionsset_fd_refresh (std::size_t value)
LineOptSolverOptionsset_frozen_layers (std::vector< std::string > value)

Public Attributes

std::string strategy = "best1bin"
std::size_t popsize = 15
double mutation_low = 0.5
double mutation_high = 1.0
double recombination = 0.7
double tolerance = 0.01
std::size_t max_iterations = 100
double time_limit = 300.0
std::optional< std::uint64_t > seed
bool verbose = false
double penalty_weight = 1e6
std::string scenario_aggregation = "worst"
std::string optimizer = "evolution"
double fd_step = 1e-6
double fd_step_layered = 1e-4
std::size_t gradient_restarts = 4
std::string lqn_gradient = "fd"
std::size_t fd_refresh = 5
std::vector< std::string > frozen_layers

Detailed Description

Definition at line 50 of file line_opt_solver.h.

Member Function Documentation

◆ clear_seed()

LineOptSolverOptions & line::opt::LineOptSolverOptions::clear_seed ( )
inline

Definition at line 104 of file line_opt_solver.h.

References seed.

◆ set_fd_refresh()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_fd_refresh ( std::size_t value)
inline

Definition at line 142 of file line_opt_solver.h.

References fd_refresh.

◆ set_fd_step()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_fd_step ( double value)
inline

Definition at line 124 of file line_opt_solver.h.

References fd_step.

◆ set_fd_step_layered()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_fd_step_layered ( double value)
inline

Definition at line 128 of file line_opt_solver.h.

References fd_step_layered.

◆ set_frozen_layers()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_frozen_layers ( std::vector< std::string > value)
inline

Definition at line 146 of file line_opt_solver.h.

References frozen_layers.

◆ set_gradient_restarts()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_gradient_restarts ( std::size_t value)
inline

Definition at line 132 of file line_opt_solver.h.

References gradient_restarts.

◆ set_lqn_gradient()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_lqn_gradient ( std::string value)
inline

Definition at line 136 of file line_opt_solver.h.

References line::InputError::InputError(), and lqn_gradient.

◆ set_max_iterations()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_max_iterations ( std::size_t value)
inline

Definition at line 92 of file line_opt_solver.h.

References max_iterations.

◆ set_mutation()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_mutation ( double low,
double high )
inline

Definition at line 79 of file line_opt_solver.h.

References mutation_high, and mutation_low.

◆ set_optimizer()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_optimizer ( std::string value)
inline

Definition at line 120 of file line_opt_solver.h.

References optimizer.

◆ set_penalty_weight()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_penalty_weight ( double value)
inline

Definition at line 112 of file line_opt_solver.h.

References penalty_weight.

◆ set_popsize()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_popsize ( std::size_t value)
inline

Definition at line 75 of file line_opt_solver.h.

References popsize.

◆ set_recombination()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_recombination ( double value)
inline

Definition at line 84 of file line_opt_solver.h.

References recombination.

◆ set_scenario_aggregation()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_scenario_aggregation ( std::string value)
inline

Definition at line 116 of file line_opt_solver.h.

References scenario_aggregation.

◆ set_seed()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_seed ( std::uint64_t value)
inline

Definition at line 100 of file line_opt_solver.h.

References seed.

◆ set_strategy()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_strategy ( std::string value)
inline

Definition at line 71 of file line_opt_solver.h.

References strategy.

◆ set_time_limit()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_time_limit ( double value)
inline

Definition at line 96 of file line_opt_solver.h.

References time_limit.

◆ set_tolerance()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_tolerance ( double value)
inline

Definition at line 88 of file line_opt_solver.h.

References tolerance.

◆ set_verbose()

LineOptSolverOptions & line::opt::LineOptSolverOptions::set_verbose ( bool value)
inline

Definition at line 108 of file line_opt_solver.h.

References verbose.

Member Data Documentation

◆ fd_refresh

std::size_t line::opt::LineOptSolverOptions::fd_refresh = 5

Definition at line 68 of file line_opt_solver.h.

Referenced by set_fd_refresh().

◆ fd_step

double line::opt::LineOptSolverOptions::fd_step = 1e-6

Definition at line 64 of file line_opt_solver.h.

Referenced by set_fd_step().

◆ fd_step_layered

double line::opt::LineOptSolverOptions::fd_step_layered = 1e-4

Definition at line 65 of file line_opt_solver.h.

Referenced by set_fd_step_layered().

◆ frozen_layers

std::vector<std::string> line::opt::LineOptSolverOptions::frozen_layers

Definition at line 69 of file line_opt_solver.h.

Referenced by set_frozen_layers().

◆ gradient_restarts

std::size_t line::opt::LineOptSolverOptions::gradient_restarts = 4

Definition at line 66 of file line_opt_solver.h.

Referenced by set_gradient_restarts().

◆ lqn_gradient

std::string line::opt::LineOptSolverOptions::lqn_gradient = "fd"

Definition at line 67 of file line_opt_solver.h.

Referenced by set_lqn_gradient().

◆ max_iterations

std::size_t line::opt::LineOptSolverOptions::max_iterations = 100

Definition at line 57 of file line_opt_solver.h.

Referenced by set_max_iterations().

◆ mutation_high

double line::opt::LineOptSolverOptions::mutation_high = 1.0

Definition at line 54 of file line_opt_solver.h.

Referenced by set_mutation().

◆ mutation_low

double line::opt::LineOptSolverOptions::mutation_low = 0.5

Definition at line 53 of file line_opt_solver.h.

Referenced by set_mutation().

◆ optimizer

std::string line::opt::LineOptSolverOptions::optimizer = "evolution"

Definition at line 63 of file line_opt_solver.h.

Referenced by set_optimizer().

◆ penalty_weight

double line::opt::LineOptSolverOptions::penalty_weight = 1e6

Definition at line 61 of file line_opt_solver.h.

Referenced by set_penalty_weight().

◆ popsize

std::size_t line::opt::LineOptSolverOptions::popsize = 15

Definition at line 52 of file line_opt_solver.h.

Referenced by set_popsize().

◆ recombination

double line::opt::LineOptSolverOptions::recombination = 0.7

Definition at line 55 of file line_opt_solver.h.

Referenced by set_recombination().

◆ scenario_aggregation

std::string line::opt::LineOptSolverOptions::scenario_aggregation = "worst"

Definition at line 62 of file line_opt_solver.h.

Referenced by set_scenario_aggregation().

◆ seed

std::optional<std::uint64_t> line::opt::LineOptSolverOptions::seed

Definition at line 59 of file line_opt_solver.h.

Referenced by clear_seed(), and set_seed().

◆ strategy

std::string line::opt::LineOptSolverOptions::strategy = "best1bin"

Definition at line 51 of file line_opt_solver.h.

Referenced by set_strategy().

◆ time_limit

double line::opt::LineOptSolverOptions::time_limit = 300.0

Definition at line 58 of file line_opt_solver.h.

Referenced by set_time_limit().

◆ tolerance

double line::opt::LineOptSolverOptions::tolerance = 0.01

Definition at line 56 of file line_opt_solver.h.

Referenced by set_tolerance().

◆ verbose

bool line::opt::LineOptSolverOptions::verbose = false

Definition at line 60 of file line_opt_solver.h.

Referenced by set_verbose().


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