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

Simplification of ResultStorage api #246

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Jul 1, 2024

  • attributes restricted to

    • list_solution_fits
    • mode_optim
    • maximize
  • remove add_solution() that was pre-computing current best_solution

  • derive now from MutableSequence so that one can

    • iterate over it
    • set/get/delete an item
    • append to it, extend it
    • compute its length

    such operations are actually performed on the underlying list_solution_fits attribute

  • list_solution_fits can be omitted during initialization -> will be []

  • mode_optim is now a mandatory argument

Add SolverDO.create_result_storage() to automatically specify mode_optim.

@nhuet nhuet force-pushed the resultstorage branch 2 times, most recently from 199a8d8 to b55f879 Compare July 4, 2024 15:28
@nhuet nhuet marked this pull request as ready for review July 4, 2024 15:28
- attributes restricted to
   - list_solution_fits
   - mode_optim
   - maximize
- remove add_solution() that was pre-computing current best_solution
- derive now from MutableSequence so that one can
  - iterate over it
  - set/get/delete an item
  - append to it, extend it
  - compute its length

  such operations are actually performed on the underlying list_solution_fits attribute
- list_solution_fits can be omitted during initialization -> will be []
- mode_optim is now a mandatory argument

Add SolverDO.create_result_storage() to automatically specify
mode_optim.
@g-poveda g-poveda merged commit 24428ff into airbus:master Jul 8, 2024
14 checks passed
@nhuet nhuet deleted the resultstorage branch July 11, 2024 08:45
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