use_relocate_neighbors is bypassed in GetNeighborhoodOperators

Open
#5,132 1 comment 0 reactions 3 assignees View on GitHub

Maintainers usually reply within 1 day

@StevenGay is already working on this.

Since Apr 9, 2026.

  • #5147 by @KasimVali2207 — closed without merging

Assessment

This issue has not been assessed yet.

Description

Bug Solver: Routing & CP Solver

Version: stable
Language: C++

Method LocalSearchOperator* Model::GetNeighborhoodOperators()

What did you expect to see

if (!pickup_delivery_pairs_.empty() and
      search_parameters.local_search_operators().use_relocate_neighbors() ==
          BOOL_TRUE) {
    operators.push_back(local_search_operators_[RELOCATE_NEIGHBORS]);
  }

What did you see instead?

if (!pickup_delivery_pairs_.empty() ||
      search_parameters.local_search_operators().use_relocate_neighbors() ==
          BOOL_TRUE) {
    operators.push_back(local_search_operators_[RELOCATE_NEIGHBORS]);
  }

Issue

I cannot controll the neighborhood operator, since one of them (see above) is bypassing the search parameters.

Dominant language
C++
Stars
14.5k
Forks
2.6k
Avg merge
9h 43m
Merged PRs (30d)
53

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/or-tools

All issues in google/or-tools

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.