Skip to content

Conflict resolution and bug fix#5

Open
tongyao129 wants to merge 3 commits into
Green-Team-Systems:mainfrom
tongyao129:conflict-resolution-and-bug-fix
Open

Conflict resolution and bug fix#5
tongyao129 wants to merge 3 commits into
Green-Team-Systems:mainfrom
tongyao129:conflict-resolution-and-bug-fix

Conversation

@tongyao129

Copy link
Copy Markdown

No description provided.

Comment thread CBAA_swarm.py
print("{}: {}".format(drone_name, drone_info["WinningBids"]))
print("{}: {}".format(drone_name, drone_info["RawBids"]))
if np.sum(drone_info["TaskList"]) == 0:
availability = drone_info["TaskAvailability"]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

availability after sum check

Comment thread CBAA_swarm.py
bid = (1 / (pos_diff))

if bid >= (drone_info["WinningBids"][i]):
if bid > (drone_info["WinningBids"][i]):

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve conflict when bid are the same

Comment thread CBAA_swarm.py
for j, col in enumerate(bid_columns):
if debug:
print("Task {} Bids: {}".format(j + 1, col))
best_bid = np.max(col)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when bids are the same as the previous best, do not change task assignment of agent

Comment thread CBAA_swarm.py
task_list[i] = 0
for j, winner in enumerate(drone_info["Winners"]):
winner_id = winner["id"]
if winner_id != drone_id:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compare agent id instead of bid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant