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
95606bae
Commit
95606bae
authored
May 29, 2025
by
Allvey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正车辆可用时间
parent
2c8e6d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
algorithm.py
alg/algorithm.py
+4
-1
No files found.
alg/algorithm.py
View file @
95606bae
...
@@ -156,12 +156,15 @@ class ExpectedTime(AlgorithmBase):
...
@@ -156,12 +156,15 @@ class ExpectedTime(AlgorithmBase):
task
=
truck_info
.
get_task
()
task
=
truck_info
.
get_task
()
truck_avl_time
=
self
.
pre_sch
.
get_truck_avl_time
(
truck_id
=
truck_id
)
#
truck_avl_time = self.pre_sch.get_truck_avl_time(truck_id=truck_id)
group_dynamic_excavator_num
=
len
(
self
.
group
.
group_excavators
)
group_dynamic_excavator_num
=
len
(
self
.
group
.
group_excavators
)
group_dynamic_unload_area_num
=
len
(
self
.
group
.
group_unload_areas
)
group_dynamic_unload_area_num
=
len
(
self
.
group
.
group_unload_areas
)
truck_avl_time
=
float
(
(
datetime
.
now
()
-
self
.
group
.
pre_sch
.
start_time
)
/
timedelta
(
hours
=
0
,
minutes
=
1
,
seconds
=
0
))
# except Exception as es:
# except Exception as es:
# self.logger.error("车辆调度信息读取异常")
# self.logger.error("车辆调度信息读取异常")
# self.logger.error(es)
# self.logger.error(es)
...
...
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