C++ Reference

C++ Reference: Routing

Solver::SearchLogParameters

Detailed Description

Creates a search monitor from logging parameters.

Definition at line 2270 of file constraint_solver.h.

Public Attributes

int branch_period = 1
 SearchMonitors will display a periodic search log every branch_period branches explored. More...
 
OptimizeVarobjective = nullptr
 SearchMonitors will display values of objective or variable (both cannot be used together). More...
 
IntVarvariable = nullptr
 
double scaling_factor = 1.0
 When displayed, objective or var values will be scaled and offset by the given values in the following way: scaling_factor * (value + offset). More...
 
double offset = 0
 
std::function< std::string()> display_callback
 SearchMonitors will display the result of display_callback at each new solution found. More...
 

Member Data Documentation

◆ branch_period

int branch_period = 1

SearchMonitors will display a periodic search log every branch_period branches explored.

Definition at line 2273 of file constraint_solver.h.

◆ display_callback

std::function<std::string()> display_callback

SearchMonitors will display the result of display_callback at each new solution found.

Definition at line 2285 of file constraint_solver.h.

◆ objective

OptimizeVar* objective = nullptr

SearchMonitors will display values of objective or variable (both cannot be used together).

Definition at line 2276 of file constraint_solver.h.

◆ offset

double offset = 0

Definition at line 2282 of file constraint_solver.h.

◆ scaling_factor

double scaling_factor = 1.0

When displayed, objective or var values will be scaled and offset by the given values in the following way: scaling_factor * (value + offset).

Definition at line 2281 of file constraint_solver.h.

◆ variable

IntVar* variable = nullptr

Definition at line 2277 of file constraint_solver.h.


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