Skip to content

Latest commit

 

History

History
800 lines (477 loc) · 20.1 KB

CHANGELOG.md

File metadata and controls

800 lines (477 loc) · 20.1 KB

Change Log

All notable changes to this project will be documented in this file.

Please note, while the major version has reached 1, breaking changes can be introduced within any minor version. I would prefer to downgrade the major version back to 0 to be more consistent with semantic versioning, but the crates are already published. So, I stick to it for now.

Removed

  • GitHub sponsors functionality
  • experimental async-evolution feature
  • NSGA-II implementation and its usage

Fixed

  • Fix issue in fast-service objective (#144)

Changed

  • fix clippy warnings
  • minor refactorings
  • increase limits for ruin methods
  • tweak rosomaxa algorithm
  • tweak job index
  • tweak infeasible search heuristic
  • refactor route intervals and multi trip enablers

v1.23.0- 2023-12-22

This release combines many changes, but essentials are:

  • internal route state api simplification
  • increased performance
  • several experimental features
  • bug fixes

Added

  • original job place index in activity place to simplify activity-job place matching
  • experimental: a new type of location in pragmatic format to model zero distance/duration from it to any other location. This could be useful to model optional vehicle start location.
  • allow user to pass alternative objectives in goal context to guide the search
  • experimental: a new fast-service objective function to serve jobs as soon as possible

Removed

  • experimental dispatch feature

Changed

  • apply code style refactoring
  • improve selection sampling search
  • update dependencies
  • improve a bit documentation
  • refactor route state
  • do not use hashmaps to store activity states

Fixed

  • double reload assignment when initial solution is used (#126)
  • unexpected total_order behavior in dynamic heuristic (#128)
  • improve validation rule for break with time offset (#129)
  • fix issue with skills (#133)
  • do not cluster jobs if they are defined in relations (#141)

v1.22.1- 2023-08-26

Added

  • experimental recharge stations feature to support basic electric VRP use case

Changed

  • apply refactorings to some core api
  • update dependencies

Fixed

  • reload is removed from the solution passed as initial (#126)

v1.22.0- 2023-08-08

This release focuses on algorithmic and some feature changes

Changed

  • breaking replace MDP with multi-armed bandit RL algorithm
  • change stops.activity.time.start not to include waiting time
  • improve required break functionality
  • improve managing packages with cargo's workspace
  • update dependencies
  • breaking: refactor internal models to simplify cost/telemetry handling
  • breaking change required break definition to support time range
  • change duration in csv import command from minutes to seconds
  • breaking use GenericError instead of String within Result

Added

  • more experimental plots in heuristic-research playground
  • geojson output if the library is used from interop api

v1.21.1- 2023-06-09

This release brings experimental async-evolution with other improvements.

Changed

  • update dependencies
  • fix documentation issues
  • refactor HeuristicContext trait to avoid using HeuristicPopulation directly from it
  • improve non-determinism based selectors logic

Added

  • add experimental feature async-evolution

v1.21.0- 2023-04-27

This release brings hierarchical approach for local objective estimation. Additionally, it focuses on refactoring, mostly to avoid usafe code. In memory of..

Changed

  • use hierarchical approach for local objective estimation
  • avoid unsafe code project-wise:
    • apply #![forbid(unsafe_code)] directive for rosomaxa/vrp-core/vrp-pragmatic/vrp-scientific
    • apply #![deny(unsafe_code)] directive for vrp-cli (due to FFI which is only one exception)
    • allow unsafe code only when necessary in research crates which are not used anyhow in production code
  • make pyo3 an optional dependency and wrap python bindings under py_bindings feature
  • refactor Deref trait usage
  • implement Debug for essential core types
  • refactor job index to lower memory footprint for a large scale VRP (tested on 30k CVRP instance)
  • use proper objective for tsplib format problems (CVRP)
  • error handling types
  • fix sort stability issue in elitism's improvement detection method
  • switch rosomaxa learning rate to cosine annealing
  • rename shiftTime limit to maxDuration

Added

  • experimental compact-tour objective which tries to shape routes based on job neighbourhood.
  • heuristic filtering extension
  • simple tabu list implementation used by some ruin methods
  • gene pool in rosomaxa to reintroduce some genes while search progresses

v1.20.0- 2023-04-01

This release is focused on removing unsafe code from the solver core.

Changed

  • refactor RouteContext to avoid using Arc and unsafe code
  • refactor Network to avoid using Arc/RwLock and, as result, unsafe code in consumers
  • adapt core api to required safety changes

v1.19.2 - 2023-03-22

This release introduces improvements in rosomaxa-heuristic.

Added

  • python binding with pyo3
  • example how to use library with maturin

Changed

  • cleaned area leftovers
  • update dependencies
  • update rust version on dev environment to 1.68
  • fix clippy warnings
  • bug fix in capacity feature
  • change gsom compaction logic and adapt rosomaxa

v1.19.1 - 2022-12-14

Changed

  • breaking: replace LegSelector with LegSelectionMode
  • use different approach for leg selection: selection sampling search
  • introduce initial weights in dynamic heuristic
  • update dependencies
  • update rust version on dev environment to the latest (1.65.0)

v1.19.0 - 2022-10-16

This release is focused on internal design improvements with some performance implications.

Changed

  • breaking: combine objectives and constraint modules into feature concept
  • improve ruin limits logic
  • change insertion position evaluation logic to speedup analysis
  • update dependencies
  • update rust version used for development (1.64)

Removed

  • breaking: remove area constraint as it needs rework

v1.18.4 - 2022-08-21

Changed

  • breaking: simplify unassigned job reason model
  • fix capacity violation issue related to reload feature

v1.18.3 - 2022-08-10

Added

  • add shared resource constraint for vehicle reload. Essentially, it is a limit for amount of deliveries picked from specific reload places.

Changed

  • improve obsolete reload removal logic
  • improve groups constraint
  • refactor heuristic research crate

v1.18.2 - 2022-07-12

Added

  • RedistributeSearch heuristic
  • diversify method to hyper-heuristics to increase population diversity when search stagnates

Changed

  • use experimental mode to print dynamic heuristic statistics
  • random trait internals
  • refactor multi trip functionality
  • use faster hash builders inside RouteState and Dimensions
  • update dependencies

v1.18.1 - 2022-05-13

Added

  • expose more than one reason of job unassignment. This should give more information why job was not assigned to existing tours.

Changed

  • adapt weights in heuristics

v1.18.0 - 2022-05-07

This release focuses on performance improvements.

Changed

  • adapt RosomaxaWeighted interface for weight caching
  • modify MDP reward of heuristic based on its execution time
  • breaking: use SmallRng as faster alternative to StdRng and avoid initialization on each usage
  • improve slow search detection logic
  • update dependencies

Fixed

  • fix issue: telemetry metrics are not included in solution file
  • fix issue: capacity violation in rare cases when multi-jobs are used

Added

  • WorstRouteRemoval: removes routes with the smallest amount of jobs

Removed

  • remove MultiSelective and use DynamicSelective by default

v1.17.0 - 2022-04-25

This release focuses on internal algorithm improvements in direction of predictability.

Changed

  • upgrade to 1.60 rust
  • fix tour order issue related to break/reload activities
  • fix limit violation issue in specific use cases
  • improve rosomaxa and customized GSOM implementation
  • use a new Arc::new_cyclic method to bind multi-single jobs
  • fix regression in runtime performance related to greediness of SWAP* heuristic implementation

Added

  • heuristic research playground with algorithm visualizations capabilities

v1.16.1 - 2022-03-10

Added

  • stopping by terminal signal
  • minimize-arrival-time objective to prefer solutions where work is finished earlier.

v1.16.0 - 2022-03-03

Changed

  • breaking: add required break functionality (experimental)
  • update dependencies

v1.15.0 - 2022-02-15

Changed

  • breaking: rework area constraint

v1.14.0 - 2022-01-23

Changed

  • breaking: extract rosomaxa crate with generalized heuristic implementation
  • update dependencies

v1.13.0 - 2021-12-05

Added

  • add compatibility property to the job definition
  • add new local search operator based on SWAP* algorithm

Changed

  • migrate to 2021 edition
  • update dependencies
  • remove dependency on chrono in favor of time
  • use variable strategy for leg insertion analysis
  • adjust route removal ruin methods to limit a bit amount of removed jobs
  • order of initial heuristics

v1.12.0 - 2021-11-16

Added

  • a new local search operator: exchange sequence
  • a vicinity job clustering: group close jobs in the same stop and visit them differently

Changed

  • update dependencies
  • bug fixes

v1.11.5 - 2021-09-27

Added

  • a limited support for TSPLIB95 format
  • more validation rules for objective usage

Changed

  • change defaults for initial solution building logic
  • improve rosomaxa algorithm
  • improve tour order objective logic
  • update dependencies

v1.11.4 - 2021-09-10

Changed

  • fix a memory leak
  • update dependencies

v1.11.3 - 2021-09-07

Added

  • analyze clusters command to cli
  • break policy property
  • a penalty property for skipping break in maximize-value objective

Changed

  • improve clustering removal heuristic
  • enhance rules for slow search detection and reduce search radius in case of it
  • improve unassigned jobs handling logic
  • update dependencies

v1.11.2 - 2021-08-22

Added

  • group constraint on job in pragmatic format

v1.11.1 - 2021-08-17

Added

  • slice recreate method

Changed

  • breaking: move tag from task to place level in pragmatic format
  • breaking: adjust break definition to be consistent with job
  • update dependencies

v1.11.0 - 2021-08-08

Added

  • a metaheuristic which searches in infeasible solution space
  • logic to swap objective with some small probability in rosomaxa algorithm

Changed

  • refactor logging configuration
  • change metaheuristic coefficients

v1.10.8 - 2021-07-21

Changed

  • validation rule for any relation

v1.10.7 - 2021-07-12

Added

  • export validation function

v1.10.6 - 2021-06-27

Added

  • logging prefix in config

Changed

  • minor changes in core logic

v1.10.5 - 2021-06-20

Changed

  • finalize tour order implementation and make it work on job place level
  • minor improvements in pragmatic format logic
  • update dependencies

Removed

  • undocumented hre format

v1.10.4 - 2021-05-15

Added

  • pre/post processing steps for problem and solution
  • optimization which moves backward departure time
  • coefficient of variation termination criteria is extended to support time period

Changed

  • do not always try to move forward departure time

v1.10.3 - 2021-05-03

Added

  • new recreate method: RecreateWithSkipRandom

Changed

  • min-cv can be used in exploration search phase
  • improve rosomaxa algorithm

v1.10.2 - 2021-04-28

Changed

  • introduce min-cv parameter instead of cost-variation
  • improved stability of some tests
  • bug fixes

Removed

  • cost-variation parameter

v1.10.1 - 2021-04-20

Changed

  • breaking: rename job's priority property to order
  • change default objective behaviour when value property is used

v1.10.0 - 2021-04-02

This release has breaking changes in pragmatic format and internal apis.

Added

  • new objectives: minimize-distance and minimize-duration
  • new CLI option: init-size to control amount of initial solutions to be built built
  • travelling duration scale on vehicle profile: it can be used to adjust durations for specific vehicle type

Changed

  • optimize cluster ruin method
  • improve unassigned code reason handling
  • breaking: convert profile property on vehicle type to an object

Removed

  • type property from matrix profile

v1.9.1 - 2021-03-24

Added

  • maximize value objective

Changed

  • build multiple initial solutions

v1.9.0 - 2021-03-19

Changed

  • use dynamic hyper-heuristic by default
  • flatten objective functions definition
  • rebalance coefficients of recreate methods
  • reduce default population selection size

v1.8.1 - 2021-02-26

Added

  • a new ruin method which destroys closest routes
  • more solution checker rules

Changed

  • rebalance ruin methods

Fixed

  • fix an issue with huge amount of possible permutations in multi job

v1.8.0 - 2021-02-07

Added

  • a new mutation operator: decompose search which is used for bigger problem instances
  • a new population type: greedy
  • breaking: introduced hyper-heuristic model
  • an experimental dynamic selective hyper-heuristic (WIP)

Changed

  • speedup processing of unassigned jobs

v1.7.4 - 2021-01-23

Changed

  • introduced parallelism control options (experimental).

v1.7.3 - 2021-01-08

Changed

  • update hre format support to v2 version
  • update dependencies

v1.7.2 - 2020-12-05

Changed

  • update dependencies
  • apply minor algorithm changes

v1.7.1 - 2020-11-29

This release focuses on improving performance and bug fixing.

Changed

  • use stale flag internally to avoid route state updates on non-changed routes

Removed

  • remove unstable push tour departure LS method

v1.7.0 - 2020-11-23

This release features a new solution space exploration algorithm called ROSOMAXA: Routing Optimizations with Self Organizing MAps and eXtrAs (pronounced as "rosomaha", from russian "росомаха" - "wolverine").

Added

  • add and use by default rosomaxa algorithm
  • add a new LS method to push tour departure in the future
  • add a Local Search mutation
  • add farthest insertion heuristic

Changed

  • move Local Search out of Ruin Recreate mutation
  • breaking: use string as unassigned job reason code

v1.6.4 - 2020-10-27

Added

  • tour size constraint which limits amount of job activities per tour

v1.6.3 - 2020-10-21

Added

  • introduce dispatch feature to support vehicle dispatching functionality (depot replacement)

Removed

  • breaking: removed depot feature

Changed

  • ExchangeIntraRouteRandom now removes and reinserts with noise a single random job

v1.6.2 - 2020-10-18

Changed

  • breaking: job skills are now defined by allOf, oneOf and noneOf conditions
  • use hashbrown library in pragmatic crate
  • fixed minor bugs

Removed

  • config property from pragmatic format

v1.6.1 - 2020-10-15

Added

  • breaks property in minimize-unassigned objective
  • dependencies audit by github actions

Changed

  • break assignment is made less strict by default. User has certain control on its assignment by the objective
  • replaced uniform_real(0., 1.) usage with is_hit method in Random trait
  • default parameters of local search operators

Fixed

  • minor tech debt

v1.6.0 - 2020-10-14

Added

  • cargo features to build cli library without certain dependencies
  • proper k-regret recreate method
  • recreate-with-perturbation recreate method
  • add local search operators to ruin recreate mutation:
    • inter route best
    • inter route random
    • intra route random

Changed

  • renamed regret to skip-best method

Fixed

  • some issues in init readers

v1.5.0 - 2020-09-07

Added

  • accept location indices for routing matrix

Changed

  • do not generate initial solutions when initial solution supplied

Fixed

  • ruin bug with zero-cost jobs
  • population size performance issue
  • incorrect checker expectations regarding vehicleId template

v1.0.0 - 2020-04-09

  • Initial public release

v0.0.1 - 2019-08-26

  • Initial commit