simple-job-shop
PythonでJob Shop問題とFlow Shop問題を解くための小さなライブラリです。内部ではGoogle OR-ToolsのCP-SATソルバを利用します。
特長
- Job Shop問題を解く:
solve_job_shop - Flow Shop問題を解く:
solve_flow_shop - 結果を
Resultデータクラスで受け取れる
使い方
1. Flow Shop問題
time_listは「ジョブごと × 機械ごと」の処理時間です。各ジョブは同じ機械順で処理されます。
from simple_job_shop import solve_flow_shop
time_list = [
[3, 2, 2], # job 0
[2, 1, 4], # job 1
[4, 3, 1], # job 2
]
print(solve_flow_shop(time_list))
2. Job Shop問題
id_listは「ジョブごと × 処理順」の機械番号、time_listは対応する処理時間です。ジョブごとに処理する機械を指定します。
from simple_job_shop import solve_job_shop
id_list = [
[0, 1], # job 0 の機械の番号
[0, 2, 1], # job 1 の機械の番号
[1, 2, 0], # job 2 の機械の番号
]
time_list = [
[3, 2],
[2, 1, 4],
[4, 3, 1],
]
print(solve_job_shop(id_list, time_list))
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_job_shop-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simple_job_shop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
966247f544d43cb14d0f8f1e34a9c22b26da49f50031e4ce464a619ab835a49e
|
|
| MD5 |
72af1d156d4ea4c5c50beb953930da46
|
|
| BLAKE2b-256 |
30fa5bcb1202a11503c741cff8af961cc0dbb0fba63e231c94ae8151b30c48ca
|