Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pickup_vrp API to be in par with the rest of the library #108

Merged
merged 13 commits into from
Feb 16, 2023

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Feb 6, 2023

  • We complete GPDPSolution class
  • We convert output of pickup_vrp solvers so that solve() does return a ResultStorage.
  • We fix various issues found by mypy
  • Add tests for this new api

What this PR does not solve:

  • LP solvers LinearFlowSolverVehicleType are unfinished
  • in case of usecase with clusters, the output is perhaps not accurate (but this is not related to the change of API)

@nhuet nhuet marked this pull request as draft February 7, 2023 10:11
nhuet and others added 10 commits February 7, 2023 15:50
This method optimize_model() can be reused in pickup_vrp LP solvers,
where we need to iterate over it without retrieving directly
GPDPDSolution (which forget about some necessary attributes in the
loop).
- Iterative solving of using Mip library has some strange behaviour,
leading to unfeasible problems.
- This commit permits to circumvent the issue by reinitializing
the TSP linear model at each iteration of the algo
- To keep in memory subtour elimination constraints, we store the necessary info
in pure python object (list_constraints_tuple), the constraint can be reintroduced from a clean model.
- This patch is not very efficient when the LP is large to initialize.
It was specific to usecase, not tested, and deprecated.
@nhuet nhuet marked this pull request as ready for review February 7, 2023 15:04
@g-poveda
Copy link
Collaborator

as discussed, this PR is satisfactory and we identified some things to code further (better satisfy function for gpdp problem)

@g-poveda g-poveda merged commit 441bcd5 into airbus:master Feb 16, 2023
@nhuet nhuet deleted the nht/pickup_api branch June 2, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants