Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a question about input data on jobshopflex_default.data (source:docplex-examples/examples/cp/visu/data/jobshopflex_default.data) #62

Open
dearispink opened this issue Feb 4, 2022 · 2 comments
Assignees

Comments

@dearispink
Copy link

dearispink commented Feb 4, 2022

I have a question about input data of jobshopflex_default.data
(source:docplex-examples/examples/cp/visu/data/jobshopflex_default.data)
If I need to split job. How could I create input data choices?
Example
Choice 1 :
Job 1 Machine 1 Duration 10
Choice 2 :
Job 1 Machine 1 Duration 5
Job 1 Machine 2 Duration 5

Respectfully,

@vlkong
Copy link
Member

vlkong commented Feb 4, 2022

Hi,

As documented here: https://github.com/IBMDecisionOptimization/docplex-examples/blob/master/examples/cp/visu/job_shop_flexible.py#L27

# First line contains the number of jobs, and the number of machines.
# The rest of the file consists of one line per job.
# First integer is the number of job steps, followed by the choices for each step.
# For each step, first integer indicates the number of choices, followed
# by the choices expressed with two integers: machine and duration

So for your job 1, you have 1 step with 2 choices: one which would be (1, 5) (as machine 1 duration 5), the second would be (2, 5):

1 2 1 5 2 5

@vlkong vlkong self-assigned this Feb 4, 2022
@dearispink dearispink reopened this Feb 8, 2022
@dearispink
Copy link
Author

Hi,

As documented here: https://github.com/IBMDecisionOptimization/docplex-examples/blob/master/examples/cp/visu/job_shop_flexible.py#L27

# First line contains the number of jobs, and the number of machines.
# The rest of the file consists of one line per job.
# First integer is the number of job steps, followed by the choices for each step.
# For each step, first integer indicates the number of choices, followed
# by the choices expressed with two integers: machine and duration

So for your job 1, you have 1 step with 2 choices: one which would be (1, 5) (as machine 1 duration 5), the second would be (2, 5):

1 2 1 5 2 5

For this input data
1 2 1 5 2 5

Result is 1 5 or 2 5
but Job 1 Duration = 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants