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

Parameters for the MipSolutionHintTest suite below. More...

#include <ip_model_solve_parameters_tests.h>

Public Member Functions

 SolutionHintTestParams (SolverType solver_type, std::optional< SolveParameters > single_hint_params, std::optional< SolveParameters > two_hint_params, std::string hint_accepted_message_regex)
 

Public Attributes

SolverType solver_type
 The tested solver.
 
std::optional< SolveParameterssingle_hint_params
 
std::optional< SolveParameterstwo_hint_params
 
std::string hint_accepted_message_regex
 

Friends

std::ostream & operator<< (std::ostream &out, const SolutionHintTestParams &params)
 

Detailed Description

Parameters for the MipSolutionHintTest suite below.

Definition at line 42 of file ip_model_solve_parameters_tests.h.

Constructor & Destructor Documentation

◆ SolutionHintTestParams()

operations_research::math_opt::SolutionHintTestParams::SolutionHintTestParams ( SolverType solver_type,
std::optional< SolveParameters > single_hint_params,
std::optional< SolveParameters > two_hint_params,
std::string hint_accepted_message_regex )
inline

Definition at line 43 of file ip_model_solve_parameters_tests.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const SolutionHintTestParams & params )
friend

Definition at line 45 of file ip_model_solve_parameters_tests.cc.

Member Data Documentation

◆ hint_accepted_message_regex

std::string operations_research::math_opt::SolutionHintTestParams::hint_accepted_message_regex

A testing::ContainsRegex-compatible regex for the expected hint-acceptance message. see #regular-expression-syntax)

Definition at line 68 of file ip_model_solve_parameters_tests.h.

◆ single_hint_params

std::optional<SolveParameters> operations_research::math_opt::SolutionHintTestParams::single_hint_params

Should be non-null if the solver supports a single hint. Furthermore, it must ensure that the solve terminates with the hinted solution, rather than the optimal solution. Some values (e.g. enable_output) may be overridden.

Definition at line 58 of file ip_model_solve_parameters_tests.h.

◆ solver_type

SolverType operations_research::math_opt::SolutionHintTestParams::solver_type

The tested solver.

Definition at line 53 of file ip_model_solve_parameters_tests.h.

◆ two_hint_params

std::optional<SolveParameters> operations_research::math_opt::SolutionHintTestParams::two_hint_params

Should be non-null if the solver supports a two hints. Furthermore, it must ensure that the solve terminates with the two hinted solutions (and returns both solutions), rather than the optimal solution. Some values (e.g. enable_output) may be overridden.

Definition at line 64 of file ip_model_solve_parameters_tests.h.


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