Skip to content

Commit

Permalink
fix msvc build of ip_multiple_solutions_tests.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 25, 2024
1 parent 2f43818 commit 675fce6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ortools/math_opt/solver_tests/ip_multiple_solutions_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ TEST_P(IpMultipleSolutionsTest, FindTwoSolutionsUsingHint) {
model_parameters.solution_hints.emplace_back(hint);

const Solution expected1 = {
.primal_solution = std::make_optional<PrimalSolution>(
{.variable_values = {{x1, 0.0}, {x2, 1.0}},
.objective_value = 3.0,
.feasibility_status = SolutionStatus::kFeasible})};
.primal_solution =
PrimalSolution{.variable_values = {{x1, 0.0}, {x2, 1.0}},
.objective_value = 3.0,
.feasibility_status = SolutionStatus::kFeasible}};

const Solution expected2 = {
.primal_solution = std::make_optional<PrimalSolution>(
{.variable_values = {{x1, 1.0}, {x2, 0.0}},
.objective_value = 1.0,
.feasibility_status = SolutionStatus::kFeasible})};
.primal_solution =
PrimalSolution{.variable_values = {{x1, 1.0}, {x2, 0.0}},
.objective_value = 1.0,
.feasibility_status = SolutionStatus::kFeasible}};

for (int32_t solution_pool_size : {1, 2}) {
SCOPED_TRACE(absl::StrCat("Solution pool size: ", solution_pool_size));
Expand Down

0 comments on commit 675fce6

Please sign in to comment.