Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Creates a search monitor from logging parameters. More...
#include <constraint_solver.h>
Public Attributes | |
int | branch_period = 1 |
OptimizeVar * | objective = nullptr |
std::vector< IntVar * > | variables |
std::vector< double > | scaling_factors |
std::vector< double > | offsets |
std::function< std::string()> | display_callback |
bool | display_on_new_solutions_only = true |
Creates a search monitor from logging parameters.
Definition at line 2497 of file constraint_solver.h.
int operations_research::Solver::SearchLogParameters::branch_period = 1 |
SearchMonitors will display a periodic search log every branch_period branches explored.
Definition at line 2500 of file constraint_solver.h.
std::function<std::string()> operations_research::Solver::SearchLogParameters::display_callback |
SearchMonitors will display the result of display_callback at each new solution found and when the search finishes if display_on_new_solutions_only is false.
Definition at line 2513 of file constraint_solver.h.
bool operations_research::Solver::SearchLogParameters::display_on_new_solutions_only = true |
To be used to protect from cases where display_callback assumes variables are instantiated, which only happens in AtSolution().
Definition at line 2516 of file constraint_solver.h.
OptimizeVar* operations_research::Solver::SearchLogParameters::objective = nullptr |
SearchMonitors will display values of objective or variables (both cannot be used together).
Definition at line 2503 of file constraint_solver.h.
std::vector<double> operations_research::Solver::SearchLogParameters::offsets |
Definition at line 2509 of file constraint_solver.h.
std::vector<double> operations_research::Solver::SearchLogParameters::scaling_factors |
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 2508 of file constraint_solver.h.
std::vector<IntVar*> operations_research::Solver::SearchLogParameters::variables |
Definition at line 2504 of file constraint_solver.h.