Add suboptimal search option#42
Open
arjo129 wants to merge 4 commits intoarjoc/feat/benchmark-infrafrom
Open
Conversation
24c130a to
a04f3b2
Compare
…sults Generated-by: Gemini-CLI Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Generated-by: Gemini-CLI Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Generated-by: Gemini-CLI Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
a04f3b2 to
6b25f8b
Compare
This change allows for tunable suboptimality in the negotiation process by introducing a weight parameter to the focal search. A negotiate wrapper is provided for backward compatibility. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New feature implementation
Implemented feature
This PR introduces FOCAL search into the negotiation loop. Unlike standard Best-First Search which focuses purely on cost, FOCAL search prioritizes nodes within a sub-optimal bound
f(n) <= weight * min_costthat have the fewest conflicts. This allows the solver to find valid paths significantly faster in congested environments by proactively avoiding agents.Key Changes
Benchmark Results: Weight Comparison
The following table compares the baseline (Standard Best-First) against FOCAL search with weights of 1.1 and 1.5.
empty-32-32room-32-32-4empty-32-32room-32-32-4Observations:
room-32-32-4with 10 agents) that the baseline could not, but was slower than 1.5 in open-space congestion.Conclusion
Setting
focal_weightto 1.5 provides the best balance between path optimality and search speed, resolving complex scenarios that previously timed out while offering substantial speedups in high-traffic areas.Verification
empty,room,maze, andrandommaps from the Moving AI dataset.GenAI Use
We follow OSRA's policy on GenAI tools
Generated-by: Gemini-CLI