{"id":22707087,"url":"https://github.com/cair/per-jsp","last_synced_at":"2026-02-13T06:34:59.465Z","repository":{"id":258592066,"uuid":"830660237","full_name":"cair/per-jsp","owner":"cair","description":"Performant execution runtime for JSP","archived":false,"fork":false,"pushed_at":"2024-11-15T13:43:11.000Z","size":364,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-15T14:33:46.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T17:57:17.000Z","updated_at":"2024-11-15T13:43:14.000Z","dependencies_parsed_at":"2024-11-15T14:34:00.854Z","dependency_job_id":null,"html_url":"https://github.com/cair/per-jsp","commit_stats":null,"previous_names":["cair/job-shop-simulator","cair/per-jsp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Fper-jsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Fper-jsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Fper-jsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Fper-jsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cair","download_url":"https://codeload.github.com/cair/per-jsp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714184,"owners_count":21149845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T10:11:27.158Z","updated_at":"2026-02-13T06:34:54.445Z","avatar_url":"https://github.com/cair.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Performant Job Shop Scheduling (PER-JSP)\r\n\r\nA high-performance Job Shop Scheduling Problem (JSSP) solver with C++ core and Python bindings. The project provides both a fast C++ library and intuitive Python interface for solving JSSP using various algorithms including Q-Learning and Actor-Critic methods.\r\n\r\n## Features\r\n\r\n- 🚀 High-performance C++ core with Python bindings\r\n- 🐍 Pure Python fallback implementation\r\n- 🔧 Flexible environment configuration\r\n- 📊 Built-in visualization\r\n- 📈 Support for standard benchmark problems (Taillard)\r\n- 🧮 Multiple solver algorithms\r\n\r\n### Implemented Algorithms\r\n| Algorithm | Status | Implementation |\r\n|-----------|:------:|----------------|\r\n| Q-Learning | ✅ | C++/Python |\r\n| Actor-Critic | ✅ | C++/Python |\r\n| SARSA | ❌ | Planned |\r\n| DQN | ❌ | Planned |\r\n| PPO | ❌ | Planned |\r\n| DDPG | ❌ | Planned |\r\n\r\n### Environment Features\r\n| Feature | Status | Notes |\r\n|---------|:------:|-------|\r\n| Jobs/Operations | ✅ | Full support |\r\n| Taillard Benchmarks | ✅ | Built-in |\r\n| Custom Environments | ✅ | JSON format |\r\n| Machine Breakdowns | 🚧 | In progress |\r\n| Tool Management | 🚧 | In progress |\r\n| Priority Scheduling | 🚧 | Planned |\r\n\r\n## Installation\r\n\r\nThere are two ways to install PER-JSP:\r\n\r\n### 1. Python-Only Installation (Fast Install)\r\nFor users who only need the Python implementation without C++ optimizations:\r\n\r\n```bash\r\nPYTHON_ONLY=1 pip install .\r\n```\r\n\r\nThis installation:\r\n- ✅ No C++ compiler needed\r\n- ✅ No system dependencies required\r\n- ✅ Quick installation\r\n- ❌ Lower performance compared to C++ version\r\n\r\n### 2. Full Installation (With C++ Extensions)\r\nFor users who want maximum performance:\r\n\r\nFirst, install system dependencies:\r\n\r\n```bash\r\n# Ubuntu/Debian\r\nsudo apt-get update \u0026\u0026 sudo apt-get install -y \\\r\n    build-essential \\\r\n    cmake \\\r\n    ninja-build \\\r\n    git \\\r\n    pkg-config \\\r\n    libgl-dev \\\r\n    libglu1-mesa-dev \\\r\n    libxrandr-dev \\\r\n    libxinerama-dev \\\r\n    libxcursor-dev \\\r\n    libxi-dev \\\r\n    python3-dev\r\n\r\n# macOS\r\nbrew install cmake ninja pkg-config\r\n\r\n# Windows (with Visual Studio installed)\r\n# No additional dependencies needed\r\n```\r\n\r\nThen install the package:\r\n```bash\r\npip install .\r\n```\r\n\r\nThis installation:\r\n- ✅ Maximum performance\r\n- ✅ All features available\r\n- ❓ Requires system dependencies\r\n- ❓ Longer installation time\r\n\r\n## Quick Start\r\n\r\n```python\r\nfrom per_jsp import Environment, QLearning\r\n\r\n# Create environment\r\nenv = Environment.from_taillard(1)  # Load Taillard instance 1\r\n\r\n# Create solver\r\nsolver = QLearning(\r\n    env,\r\n    learning_rate=0.1,\r\n    discount_factor=0.9,\r\n    exploration_rate=0.1\r\n)\r\n\r\n# Train\r\nsolver.train(episodes=1000)\r\n\r\n# Get solution\r\nschedule = solver.get_best_schedule()\r\nschedule.visualize()\r\n```\r\n\r\n## Advanced Usage\r\n\r\n### Custom Problem Instance\r\n\r\n```python\r\nfrom per_jsp import Environment\r\n\r\n# Define your problem\r\nproblem = {\r\n    \"jobs\": [\r\n        {\"operations\": [\r\n            {\"machine\": 0, \"processing_time\": 10},\r\n            {\"machine\": 1, \"processing_time\": 20}\r\n        ]},\r\n        {\"operations\": [\r\n            {\"machine\": 1, \"processing_time\": 15},\r\n            {\"machine\": 0, \"processing_time\": 25}\r\n        ]}\r\n    ]\r\n}\r\n\r\n# Create environment\r\nenv = Environment.from_dict(problem)\r\n```\r\n\r\n### Using Different Solvers\r\n\r\n```python\r\nfrom per_jsp import Environment, ActorCritic\r\n\r\nenv = Environment.from_taillard(1)\r\n\r\n# Actor-Critic solver\r\nsolver = ActorCritic(\r\n    env,\r\n    actor_lr=0.001,\r\n    critic_lr=0.001,\r\n    discount_factor=0.99\r\n)\r\n\r\n# Train with specific settings\r\nsolver.train(\r\n    episodes=1000,\r\n    max_steps=10000,\r\n    verbose=True\r\n)\r\n```\r\n\r\n## Performance Comparison\r\n\r\n| Problem Size | Python-Only | With C++ | Speedup |\r\n|-------------|-------------|----------|---------|\r\n| 6x6         | 1.00x       | 8.45x    | 8.45x   |\r\n| 10x10       | 1.00x       | 12.3x    | 12.3x   |\r\n| 20x20       | 1.00x       | 15.7x    | 15.7x   |\r\n\r\n## Contributing\r\n\r\nContributions are welcome! See our [Contributing Guide](CONTRIBUTING.md) for details.\r\n\r\n### Development Setup\r\n\r\n```bash\r\n# Clone repository\r\ngit clone https://github.com/cair/per-jsp\r\ncd per-jsp\r\n\r\n# Create virtual environment\r\npython -m venv venv\r\nsource venv/bin/activate  # or `venv\\Scripts\\activate` on Windows\r\n\r\n# Install in development mode\r\npip install -e \".[dev]\"\r\n```\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see [LICENSE](LICENSE) for details.\r\n\r\n## Citation\r\n\r\nIf you use this software in your research, please cite:\r\n\r\n```bibtex\r\n@software{andersen2024perjsp,\r\n  author = {Andersen, Per-Arne},\r\n  title = {PER-JSP: A Performant Job Shop Scheduling Framework},\r\n  year = {2024},\r\n  url = {https://github.com/cair/per-jsp}\r\n}\r\n```\r\n\r\n## Support\r\n\r\n- 📖 [Documentation](https://github.com/cair/per-jsp/wiki)\r\n- 🐛 [Issue Tracker](https://github.com/cair/per-jsp/issues)\r\n- 💬 [Discussions](https://github.com/cair/per-jsp/discussions)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Fper-jsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcair%2Fper-jsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Fper-jsp/lists"}