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
f124d78c
Commit
f124d78c
authored
May 15, 2025
by
Allvey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调度算法优化
parent
cb912b81
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
config.json
config.json
+3
-1
schedule.py
core/schedule.py
+12
-7
dump.py
equipment/dump.py
+1
-1
excavator.py
equipment/excavator.py
+1
-1
No files found.
config.json
View file @
f124d78c
...
...
@@ -4,7 +4,9 @@
"empty_speed"
:
10
,
"heavy_speed"
:
10
,
"dump_target_mass"
:
5000
,
"excavator_target_mass"
:
5000
"excavator_target_mass"
:
5000
,
"loading_time"
:
10
,
"unloading_time"
:
20
},
"mysql"
:
{
"host"
:
"172.16.0.51"
,
...
...
core/schedule.py
View file @
f124d78c
...
...
@@ -133,6 +133,8 @@ class PreSchedule:
excavator_uuid_to_name_dict
=
get_value
(
"excavator_uuid_to_name_dict"
)
excavator_uuid_to_index_dict
=
get_value
(
"excavator_uuid_to_index_dict"
)
try
:
now
=
float
(
...
...
@@ -192,10 +194,11 @@ class PreSchedule:
count
=
0
self
.
logger
.
info
(
"excavator_avl_ls"
)
for
excavator_id
in
self
.
excavator
.
excavator_uuid_to_index_dict
.
keys
():
for
excavator_id
in
excavator_uuid_to_index_dict
.
keys
():
excavator_index
=
excavator_uuid_to_index_dict
[
excavator_id
]
excavator_name
=
excavator_uuid_to_name_dict
[
excavator_id
]
self
.
logger
.
info
(
f
'{excavator_name} {excavator_avl_ls[
count
]}'
)
count
+=
1
self
.
logger
.
info
(
f
'{excavator_name} {excavator_avl_ls[
excavator_index
]}'
)
# self.logger.info(get_value("dynamic_excavator_set"))
# self.logger.info(excavator_avl_ls)
except
Exception
as
es
:
...
...
@@ -232,6 +235,8 @@ class PreSchedule:
dump_uuid_to_name_dict
=
get_value
(
"dump_uuid_to_name_dict"
)
dump_uuid_to_index_dict
=
get_value
(
"dump_uuid_to_index_dict"
)
# try:
now
=
float
(
...
...
@@ -264,12 +269,12 @@ class PreSchedule:
# if abs(self.truck_avl_time[int(tmp[truck_id][1])] - now) > 60:
# self.truck_avl_time[int(tmp[truck_id][1])] = now
count
=
0
self
.
logger
.
info
(
"dump_avl_ls"
)
for
dump_id
in
get_value
(
"dynamic_dump_set"
):
for
dump_id
in
dump_uuid_to_index_dict
.
keys
():
dump_index
=
dump_uuid_to_index_dict
[
dump_id
]
dump_name
=
dump_uuid_to_name_dict
[
dump_id
]
self
.
logger
.
info
(
f
'{dump_name} {dump_avl_ls[
count
]}'
)
count
+=
1
self
.
logger
.
info
(
f
'{dump_name} {dump_avl_ls[
dump_index
]}'
)
# self.logger.info(get_value("dynamic_dump_set"))
# self.logger.info(dump_avl_ls)
# except Exception as es:
...
...
equipment/dump.py
View file @
f124d78c
...
...
@@ -85,7 +85,7 @@ class DumpInfo(WalkManage):
# except Exception as es:
# self.logger.error(f"卸载设备 {dump_id} 卸载时间信息缺失, 已设为默认值(1min)")
# self.logger.error(es)
self
.
unloading_time
[
self
.
dump_uuid_to_index_dict
[
dump_id
]]
=
5.00
self
.
unloading_time
[
self
.
dump_uuid_to_index_dict
[
dump_id
]]
=
unloading_time
# print("average_unload_time: ", self.unloading_time[self.dump_uuid_to_index_dict[dump_id]])
# 更新卸载设备出入时间
...
...
equipment/excavator.py
View file @
f124d78c
...
...
@@ -83,7 +83,7 @@ class ExcavatorInfo(WalkManage):
self
.
logger
.
info
(
self
.
loading_time
)
self
.
logger
.
info
(
"excavator_uuid_to_index_dict"
)
self
.
logger
.
info
(
self
.
excavator_uuid_to_index_dict
)
self
.
loading_time
[
self
.
excavator_uuid_to_index_dict
[
excavator_id
]]
=
3.00
self
.
loading_time
[
self
.
excavator_uuid_to_index_dict
[
excavator_id
]]
=
loading_time
# 更新挖机设备出入时间
def
update_excavator_entrance_exit_time
(
self
):
...
...
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