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
a361d2b0
Commit
a361d2b0
authored
Feb 01, 2023
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增车辆空载及重载周期调度
parent
95a3b9c9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
algorithm.py
alg/algorithm.py
+1
-2
group.py
core/group.py
+0
-0
submit.py
core/submit.py
+1
-2
gothrough_digging.py
gothrough/gothrough_digging.py
+2
-1
start.sh
start.sh
+3
-0
No files found.
alg/algorithm.py
View file @
a361d2b0
...
...
@@ -369,8 +369,7 @@ class DistributionRatio(object):
@desc:计算分流配比模式下,卡车与卸载区的对应关系
"""
# TODO:
# 统一与预期等待时间的接口
# TODO: 统一与预期等待时间的接口
def
__init__
(
self
,
exactor_id
,
truck
):
self
.
truck
=
truck
...
...
core/group.py
View file @
a361d2b0
This diff is collapsed.
Click to expand it.
core/submit.py
View file @
a361d2b0
...
...
@@ -121,8 +121,7 @@ class DispatchSubmission:
record
=
redis_format
(
truck_id
,
group_id
,
str
(
uuid
.
uuid1
()),
item
)
# TODO:
# 判断了两次是否拥堵,需要改善
# TODO: 判断了两次是否拥堵,需要改善
if
self
.
topo
is
not
None
:
...
...
gothrough/gothrough_digging.py
View file @
a361d2b0
...
...
@@ -342,7 +342,8 @@ def truck_pass_first_area(truck_id, lane_id, closer_entrance_node_id, further_en
size
=
len
(
que
)
for
_
in
range
(
size
):
cur_node
=
que
.
popleft
()
if
cur_node
is
None
:
continue
if
cur_node
is
None
:
continue
logger
.
info
(
cur_node
)
if
cur_node
==
closer_entrance_node_id
:
logger
.
info
(
"closer_entrance_node"
)
...
...
start.sh
View file @
a361d2b0
#!/bin/bash
ps
-ef
|grep realtime_dispatch.py|grep
-v
grep
|awk
{
'print $2'
}
kill
-9
ps
python3 topo_update_server.py
nohup
python3 realtime_dispatch.py
--active
>
/dev/null 2>&1 &
\ No newline at end of file
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