![]() |
Google OR-Tools v9.12
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 2558 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 2561 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 2574 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 2577 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 2564 of file constraint_solver.h.
std::vector<double> operations_research::Solver::SearchLogParameters::offsets |
Definition at line 2570 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 2569 of file constraint_solver.h.
std::vector<IntVar*> operations_research::Solver::SearchLogParameters::variables |
Definition at line 2565 of file constraint_solver.h.