Skip to content

Commit

Permalink
Simplified BiDirectional #17 fixed Tabu heuristic function #20
Browse files Browse the repository at this point in the history
  • Loading branch information
kermit-z committed Mar 6, 2020
1 parent 34fead1 commit 886cf9f
Show file tree
Hide file tree
Showing 34 changed files with 826 additions and 334 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
cd ~/cspy/cspy
cd ~/cspy/
python3 -m unittest
python3 -m coverage run -m unittest
codecov
Expand Down
55 changes: 47 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@
# Changelog

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

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]
### Changed

## Fixed

- BiDirectional algorithm (#17).
- Heuristic used in Tabu for input in the networkx.astar_path algorithm (#20).

### Changed

- Documentation.
- BiDirectional algorithm:
- Final label comparisons.
- Seed handling for testing.
- Renamed variables to avoid confusion.
- Avoiding getting stuck processing cycles of input graphs.
- Ensuring that edges in path correspond to an edge in the input graph.
- Avoid overwriting inputs (`max_res` and `min_res`).
- Removed loops in `_get_next_label` and `_check_dominance` in favour of list comprehensions.
- Use of `collections`.
- logs for debugging in BiDirectional.
- added `_save_current_best_label`.
- Changed type of `self.finalLabel["direction"]` from list to `Label`.

- Re-organised. Moved `label.py` and `path.py` into `algorithms/`.

## [0.0.10] - 09/02/2020

## Added

- PuLP example.

## Changed

- Documentation.
- Translated ``examples/cgar`` from gurobipy to pulp.
- CI build.

## [0.0.9] - 25/12/2019

## Added

- Added example directory with column generation example.
Expand All @@ -17,8 +52,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- PSOLGENT seed handling.
- Improved documentation.
- unit tests structure.

## [0.0.8] - 15/07/2019

### Added

- Generic resource extension functions options.
Expand All @@ -28,20 +65,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- numpy.array integration.

## [0.0.5] - 9/07/2019

### Added

- ``PSOLGENT``.
- ``GreedyElim`` simple test.
- `PSOLGENT`.
- `GreedyElim` simple test.

### Changed

- Fixed prune_graph preprocessing routine.
- YAPF google style.

## [0.0.3] - 9/07/2019

### Added

- ``GRASP``.
- `GRASP`.

### Changed

Expand All @@ -50,23 +89,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Removed duplicate code in `tabu.py` and `greedy_elimination.py`.

## [0.0.1] - 1/07/2019

### Added

- assertLogs tests for bidirectional algorithm classification.
- Personal MIT LICENSE.
- ``GreedyElim`` Procedure.
- `GreedyElim` Procedure.

### Changed

- Documentation updates.
- Docstring modifications to include maths.
- Updated README.


[Unreleased]: https://github.com/torressa/cspy/compare/v0.0.9...HEAD
[unreleased]: https://github.com/torressa/cspy/compare/v0.0.10...HEAD
[0.0.10]: https://github.com/torressa/cspy/compare/v0.0.9...v0.0.10
[0.0.9]: https://github.com/torressa/cspy/compare/v0.0.8...v0.0.9
[0.0.8]: https://github.com/torressa/cspy/compare/0.0.5...v0.0.8
[0.0.5]: https://github.com/torressa/cspy/compare/0.0.3...0.0.5
[0.0.3]: https://github.com/torressa/cspy/compare/0.0.1...0.0.3
[0.0.1]: https://github.com/torressa/cspy/releases/tag/v0.0.1

5 changes: 2 additions & 3 deletions cspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
from cspy.algorithms.psolgent import PSOLGENT
from cspy.algorithms.grasp import GRASP
from cspy.preprocessing import check_and_preprocess
from cspy.label import Label

name = "cspy"

__all__ = [
'BiDirectional', 'Tabu', 'GreedyElim', 'PSOLGENT', 'GRASP',
'check_and_preprocess', 'Label'
'check_and_preprocess'
]

__version__ = '0.0.8'
__version__ = '0.0.10'
Loading

0 comments on commit 886cf9f

Please sign in to comment.