Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
97dc9660
Commit
97dc9660
authored
Jan 25, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OldStylePartJobShopWIP: an option to use triangular distribution
parent
66c23a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
dream/plugins/OldStylePartJobShopWIP.py
dream/plugins/OldStylePartJobShopWIP.py
+13
-0
No files found.
dream/plugins/OldStylePartJobShopWIP.py
View file @
97dc9660
...
...
@@ -73,6 +73,19 @@ class OldStylePartJobShopWIP(plugin.InputPreparationPlugin):
"setupTime"
:
{
"Fixed"
:
{
"mean"
:
.
5
}},
# XXX hardcoded value
}
# XXX Quick and dirty way to change to stochastic
if
'Stochastic'
in
self
.
data
[
'general'
][
'name'
]:
input_processing_time
=
float
(
processing_time_list
[
j
])
route
=
{
"stationIdsList"
:
list
(
self
.
getMachineNameSet
(
sequence_step
)),
"processingTime"
:
{
"Triangular"
:
{
"mean"
:
input_processing_time
,
"min"
:
max
(
input_processing_time
-
2
,
0
),
"max"
:
input_processing_time
+
2
,
}},
"setupTime"
:
{
"Fixed"
:
{
"mean"
:
.
5
}},
# XXX hardcoded value
}
if
prerequisite_list
:
route
[
"prerequisites"
]
=
prerequisite_list
route_list
.
append
(
route
)
...
...
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