TimefoldAI / timefold-solver-python

Timefold Solver is an AI constraint solver for Python to optimize the Vehicle Routing Problem, Employee Rostering, Maintenance Scheduling, Task Assignment, School Timetabling, Cloud Optimization, Conference Scheduling, Job Shop Scheduling, Bin Packing and many more planning problems.
https://timefold.ai
Apache License 2.0
27 stars 3 forks source link

feat: Add parse methods to all score implementations #77

Closed Christopher-Chianelli closed 2 weeks ago

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

triceo commented 2 weeks ago

Is there a reason why we're adding this?

Christopher-Chianelli commented 2 weeks ago

Is there a reason why we're adding this?

Cause Score classes in Java has parse and it is extremely convenient for deserialization from score string?

triceo commented 2 weeks ago

Any chance we could call those Java solver methods under the hood, instead of duplicating the code?

Christopher-Chianelli commented 2 weeks ago

Any chance we could call those Java solver methods under the hood, instead of duplicating the code?

No; these are pure Python objects so they can be handled by Python libraries