# python-lekin **Repository Path**: dinghangLoop_admin/python-lekin ## Basic Information - **Project Name**: python-lekin - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-29 - **Last Updated**: 2024-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [license-image]: https://img.shields.io/badge/License-Apache%202.0-blue.svg [license-url]: https://opensource.org/licenses/Apache-2.0 [pypi-image]: https://badge.fury.io/py/python-lekin.svg [pypi-url]: https://pypi.python.org/pypi/python-lekin [pepy-image]: https://pepy.tech/badge/lekin/month [pepy-url]: https://pepy.tech/project/lekin [build-image]: https://github.com/LongxingTan/python-lekin/actions/workflows/test.yml/badge.svg?branch=master [build-url]: https://github.com/LongxingTan/python-lekin/actions/workflows/test.yml?query=branch%3Amaster [lint-image]: https://github.com/LongxingTan/python-lekin/actions/workflows/lint.yml/badge.svg?branch=master [lint-url]: https://github.com/LongxingTan/python-lekin/actions/workflows/lint.yml?query=branch%3Amaster [docs-image]: https://readthedocs.org/projects/python-lekin/badge/?version=latest [docs-url]: https://python-lekin.readthedocs.io/en/latest/ [coverage-image]: https://codecov.io/gh/longxingtan/python-lekin/branch/master/graph/badge.svg [coverage-url]: https://codecov.io/github/longxingtan/python-lekin?branch=master


[![LICENSE][license-image]][license-url] [![PyPI Version][pypi-image]][pypi-url] [![Download][pepy-image]][pepy-url] [![Build Status][build-image]][build-url] [![Lint Status][lint-image]][lint-url] [![Docs Status][docs-image]][docs-url] [![Code Coverage][coverage-image]][coverage-url] **[文档](https://python-lekin.readthedocs.io)** | **[教程](https://python-lekin.readthedocs.io/en/latest/tutorials.html)** | **[发布日志](https://python-lekin.readthedocs.io/en/latest/CHANGELOG.html)** | **[English](https://github.com/LongxingTan/python-lekin/blob/master/README.md)** **python-lekin**是一个APS智能排产调度工具。考虑实际约束的前提下,实现动态调整计划排程,高效响应客户订单承诺。 - 支持工艺路线约束 - 支持产能约束 - 支持物料齐套约束 - 支持顺排、倒排等排产方法 - 支持遗传算法排产 - 支持强化学习排产 # **开发中- 目前请不要使用包,可用代码跑和学习!** ## 快速入门 [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1H3o6tqJKr1yTvPNI9t0yggbb7BzE_iPz?usp=sharing) ### 安装 ``` shell $ pip install lekin ``` ### 使用 ``` python from lekin import Heuristics, Genetics from lekin import Scheduler solver = Heuristics() scheduler = Scheduler(solver) scheduler.solve(jobs, machines) scheduler.draw() ``` ## 示例 在实际APS系统开发中, - 按工艺路线拆分工序 - 按BOM拆分物料 ### 数据准备 - Job - Task - Machine - Route ## 引用 ``` @misc{python-lekin2022, author = {Yue Tan}, title = {python lekin}, year = {2022}, publisher = {GitHub}, journal = {GitHub repository}, howpublished = {\url{https://github.com/yuetan1988/python-lekin}}, } ```