Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::Solver::SearchLogParameters Struct Reference

Creates a search monitor from logging parameters. More...

#include <constraint_solver.h>

Public Attributes

int branch_period = 1
 
OptimizeVarobjective = 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
 

Detailed Description

Creates a search monitor from logging parameters.

Definition at line 2497 of file constraint_solver.h.

Member Data Documentation

◆ branch_period

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.

◆ display_callback

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.

◆ display_on_new_solutions_only

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.

◆ objective

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.

◆ offsets

std::vector<double> operations_research::Solver::SearchLogParameters::offsets

Definition at line 2509 of file constraint_solver.h.

◆ scaling_factors

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.

◆ variables

std::vector<IntVar*> operations_research::Solver::SearchLogParameters::variables

Definition at line 2504 of file constraint_solver.h.


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