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

#include <multi_objective_tests.h>

Inheritance diagram for operations_research::math_opt::SimpleMultiObjectiveTest:

Protected Member Functions

absl::StatusOr< SolveResult > SimpleSolve (const Model &model)
 

Detailed Description

A suite of unit tests for multiple objectives. Note that a solver that does not support multiple objectives should still use this fixture to ensure that it is not silently ignoring one.

To use these tests, in file <solver>_test.cc, write: INSTANTIATE_TEST_SUITE_P( <Solver>SimpleMultiObjectiveTest, SimpleMultiObjectiveTest, testing::Values( MultiObjectiveTestParameters( SolverType::k<Solver>, parameters, /*supports_multi_objectives=*‍/false, /*supports_incremental_objective_add_and_delete=*‍/false, /*supports_incremental_objective_modification=*‍/false)));

Definition at line 66 of file multi_objective_tests.h.

Member Function Documentation

◆ SimpleSolve()

absl::StatusOr< SolveResult > operations_research::math_opt::SimpleMultiObjectiveTest::SimpleSolve ( const Model & model)
inlineprotected

Definition at line 69 of file multi_objective_tests.h.


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