Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张晓彤
integrated-scheduling-v3
Commits
0a5c6a04
Commit
0a5c6a04
authored
Nov 01, 2023
by
虢奥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志补充
parent
4c3f4ccc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
area_analysis.py
util/area_analysis.py
+3
-1
No files found.
util/area_analysis.py
View file @
0a5c6a04
...
...
@@ -139,10 +139,12 @@ def area_choose(excavators_id, closer_area_id, further_area_id, further_lane_set
logger
.
error
(
"找寻最空闲挖机异常"
)
logger
.
error
(
es
)
logger
.
error
(
"随机分配挖机"
)
if
random
.
random
()
<
0.
5
:
if
random
.
random
()
<
0.
6
:
target_excavator
=
DispatchInfo
.
load_excavator_dict
[
further_area_id
]
logger
.
info
(
"随机分配远端挖机"
)
else
:
target_excavator
=
DispatchInfo
.
load_excavator_dict
[
closer_area_id
]
logger
.
info
(
"随机分配近端挖机"
)
return
target_excavator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment