bilics
bilics
Is this possible? Also looking for this. Thanks!
I imagine it is the same SolverConfig if I just to change the number of number of customers, their locations - and demands for each location will be different for...
Thanks @Christopher-Chianelli - got it. Closing this.
Hello, re-opening this because I don't think I understood completely how to setup/schedule the solver for multiple subsequent calls. Please find below the current code to test this scenario -...
Hi @Christopher-Chianelli - sorry about the delay - I have created a minimal example here: https://github.com/bilics/optapy-test The idea is to expose the solver via a REST API call: ``` curl...
Thanks @Christopher-Chianelli - that was fast! I will try these suggestions and post back here.
Hi again @Christopher-Chianelli - `HardMediumSoftScore.ONE_MEDIUM)` should be `HardSoftScore.ONE_MEDIUM`? And regarding the ``` def get_cost(self): if kind == KIND_A: return calc_cost_a(...) ... ``` where/how exactly do I call this function? I...
Thanks @Christopher-Chianelli - made it run, and seems to work! One more question regarding the cost functions `get_total_distance_meters` and `get_total_demand` (and the newly introduced one `total_cost`): Should these values be...
Understood thanks - testing out various combinations here. However, this ``` def total_cost(constraint_factory: ConstraintFactory): return constraint_factory.for_each(Vehicle) \ .penalize("minimize cost", HardMediumSoftScore.ONE_SOFT, lambda vehicle: vehicle.get_cost()) ``` does not seems to influence the...