How ppaauuoo/paper_cutting_project works
Project type and purpose
• This is a full-stack order optimization system built with Django on the backend and a simple HTML/JS frontend (using HTMX for dynamic interactions).
• The core functionality is batch processing of paper-cut orders: reading CSV/Excel inputs, running optimization (genetic algorithms, linear programming stub, custom “common-logic” routines), and presenting results in a web UI.
File structure
• Top-level Django project:
• manage.py, ordplan_project/ (settings, URLs, WSGI/ASGI)
• order_optimization/ Django app (models, views, forms, templates, URLs, migrations)
• paper_subsitution/ Django app (similar structure for paper substitution feature)
• templates/ and static/ for shared UI components (base.html, alerts, progress bar, HTMX.js)
• modules/ directory: pure-Python algorithmic modules (cnb, ga, hd, lp, ordplan, yggdrasil) and their serialized ML model artifacts under modules/*_models and modules/randomforest_models.
• data/ folder: raw input files (CSV, XLSX) and “true”/test data.
• db.sqlite3: the default SQLite database for persisting orders and substitution records.
• dev/ notebooks and scripts for exploratory analysis and algorithm tuning (not part of the production web stack but useful for offline development).
Extract additional insights from the README
• Data processing is handled by pandas.
• Optimization relies on PyGAD (genetic algorithm) with a placeholder for future linear programming.
• A web interface is planned/implemented via Django (forms + templates + HTMX).