Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling
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
0
Merge Requests
0
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
Commits
95b5a654
Commit
95b5a654
authored
Jul 23, 2021
by
Allvey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revise project name
parent
ac1dfe25
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
CHANGELOG.txt
CHANGELOG.txt
+22
-0
realtime_dispatch.py
realtime_dispatch.py
+4
-4
No files found.
CHANGELOG.txt
View file @
95b5a654
...
@@ -11,3 +11,24 @@ Changelog for package Dispatch
...
@@ -11,3 +11,24 @@ Changelog for package Dispatch
[TODO ]:
[TODO ]:
[info ]: author: zxt ; time: 2021-07-07 15:46:00 ; email: ; tel: ;
[info ]: author: zxt ; time: 2021-07-07 15:46:00 ; email: ; tel: ;
--------------------
--------------------
--------------------
[version]: 1.1.1
[message]: refactor real-time dispatch function
[feather]:
[fix ]:
[TODO ]:
[info ]: author: zxt ; time: 2021-07-23 16:59:00 ; email: ; tel: ;
--------------------
--------------------
[version]: 1.2.1
[message]: add traffic flow planning
[feather]:
[fix ]:
[TODO ]:
[info ]: author: zxt ; time: 2021-07-23 16:59:00 ; email: ; tel: ;
--------------------
\ No newline at end of file
traffic_flow
_dispatch.py
→
realtime
_dispatch.py
View file @
95b5a654
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# @Time : 2021/7/21 16:45
# @Time : 2021/7/21 16:45
# @Author : Opfer
# @Author : Opfer
# @Site :
# @Site :
# @File :
traffic_flow_dispatch.py
# @File :
realtime_dispatch.py
# @Software: PyCharm
# @Software: PyCharm
# !E:\Pycharm Projects\Waytous
# !E:\Pycharm Projects\Waytous
...
@@ -581,7 +581,7 @@ class ExcavatorInfo(DeviceMap):
...
@@ -581,7 +581,7 @@ class ExcavatorInfo(DeviceMap):
# 读取实时装载量
# 读取实时装载量
self
.
update_actual_load_throughout
()
self
.
update_actual_load_throughout
()
#
卸载
目标产量
#
挖机
目标产量
self
.
excavator_target_mass
=
np
.
full
(
self
.
shovels
,
shovel_target_mass
)
self
.
excavator_target_mass
=
np
.
full
(
self
.
shovels
,
shovel_target_mass
)
# # 同步挖机虚拟装载量
# # 同步挖机虚拟装载量
...
@@ -1186,7 +1186,7 @@ class Dispatcher(DeviceMap):
...
@@ -1186,7 +1186,7 @@ class Dispatcher(DeviceMap):
target
=
0
target
=
0
shovel_target_mass
=
self
.
excavator
.
shovel
_target_mass
excavator_target_mass
=
self
.
excavator
.
excavator
_target_mass
loading_time
=
self
.
excavator
.
loading_time
loading_time
=
self
.
excavator
.
loading_time
dump_target_mass
=
self
.
dump
.
dump_target_mass
dump_target_mass
=
self
.
dump
.
dump_target_mass
unloading_time
=
self
.
dump
.
unloading_time
unloading_time
=
self
.
dump
.
unloading_time
...
@@ -1195,7 +1195,7 @@ class Dispatcher(DeviceMap):
...
@@ -1195,7 +1195,7 @@ class Dispatcher(DeviceMap):
logger
.
info
(
"矿卡状态:矿卡启动或故障恢复"
)
logger
.
info
(
"矿卡状态:矿卡启动或故障恢复"
)
logger
.
info
(
"矿卡行程:无"
)
logger
.
info
(
"矿卡行程:无"
)
logger
.
info
(
f
'涉及电铲:{list(self.excavator_uuid_to_index_dict.keys())}'
)
logger
.
info
(
f
'涉及电铲:{list(self.excavator_uuid_to_index_dict.keys())}'
)
logger
.
info
(
f
'电铲饱和度:{(1 - self.sim_shovel_real_mass /
shovel
_target_mass)}'
)
logger
.
info
(
f
'电铲饱和度:{(1 - self.sim_shovel_real_mass /
excavator
_target_mass)}'
)
logger
.
info
(
logger
.
info
(
f
'行程时间:{(np.maximum(self.sim_shovel_ava_time, now + self.park_to_load_eq[0, :]) + loading_time - now)}'
)
f
'行程时间:{(np.maximum(self.sim_shovel_ava_time, now + self.park_to_load_eq[0, :]) + loading_time - now)}'
)
logger
.
info
(
f
'行驶时间:{self.park_to_load_eq[0, :] + loading_time}'
)
logger
.
info
(
f
'行驶时间:{self.park_to_load_eq[0, :] + loading_time}'
)
...
...
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