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))
Metadata
Release files for simple-job-shop 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_job_shop-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for simple_job_shop-0.1.1-py3-none-any.whl |
Release files / simple_job_shop-0.1.1-py3-none-any.whl
| Download URL | simple_job_shop-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
495e75f775c011cd5f6d2773abec947c45cf6046099bd3140f578dd0825e9e3c
|
|
BLAKE2b-256 checksum How to use checksums |
83de008eb4e634c9f911e2b0426dc894486ffcf5b9345712f446d53254a63579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for simple-job-shop 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.