Metadata-Version: 2.1
Name: jinete
Version: 0.0.13
Summary: High Performance solving suite for the Pickup and Delivery Problem and its related extensions.
Home-page: https://github.com/garciparedes/jinete
Author: Sergio García Prado
Author-email: sergio@garciparedes.me
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: cached-property (>=1.5.1)
Requires-Dist: networkx (>=2.3)
Requires-Dist: matplotlib (>=3.1.1)
Requires-Dist: seaborn (>=0.9.0)
Requires-Dist: PuLP (>=1.6.10)
Provides-Extra: all
Requires-Dist: sphinx ; extra == 'all'
Requires-Dist: sphinx-rtd-theme ; extra == 'all'
Requires-Dist: sphinxcontrib-apidoc ; extra == 'all'
Requires-Dist: coverage ; extra == 'all'
Requires-Dist: codecov ; extra == 'all'
Requires-Dist: flake8 ; extra == 'all'
Requires-Dist: mypy ; extra == 'all'
Requires-Dist: coloredlogs ; extra == 'all'
Provides-Extra: docs
Requires-Dist: sphinx ; extra == 'docs'
Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
Requires-Dist: sphinxcontrib-apidoc ; extra == 'docs'
Provides-Extra: logs
Requires-Dist: coloredlogs ; extra == 'logs'
Provides-Extra: syntax
Requires-Dist: flake8 ; extra == 'syntax'
Requires-Dist: mypy ; extra == 'syntax'
Provides-Extra: tests
Requires-Dist: coverage ; extra == 'tests'
Requires-Dist: codecov ; extra == 'tests'


# jinete

<img align="right" width="15%" src="https://raw.githubusercontent.com/garciparedes/jinete/master/res/images/jinete.svg?sanitize=true" alt="jinete">

[![PyPI](https://img.shields.io/pypi/v/jinete.svg)](https://pypi.org/project/jinete)
[![Read the Docs](https://img.shields.io/readthedocs/jinete.svg)](https://jinete.readthedocs.io/)
[![Travis (.org) branch](https://img.shields.io/travis/garciparedes/jinete/master.svg)](https://travis-ci.org/garciparedes/jinete/branches)
[![Codecov](https://img.shields.io/codecov/c/github/garciparedes/jinete.svg)](https://codecov.io/gh/garciparedes/jinete)
[![GitHub](https://img.shields.io/github/license/garciparedes/jinete.svg)](https://github.com/garciparedes/jinete/blob/master/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/garciparedes/jinete.svg)](https://github.com/garciparedes/jinete)

## Description 

High Performance solving suite for the Pickup and Delivery Problem and its related extensions. 

*IMPORTANT*: This project is still under its early stage of development. So it's not recommended yet to use on real world projects. 

This library has been inspired (and created) by a Final Degree Project, which you can read at: https://github.com/garciparedes/tfg-pickup-and-delivery


## How to install

```bash
pip install jinete
```

## Getting Started

```python
import jinete as jit

file_path = './res/datasets/hashcode/a_example.in'

class MyLoader(jit.FileLoader):
    def __init__(self, *args, **kwargs):
        super().__init__(
            file_path=file_path,
            formatter_cls=jit.HashCodeLoaderFormatter,
            *args, **kwargs,
        )

class MyAlgorithm(jit.InsertionAlgorithm):
    def __init__(self, *args, **kwargs):
        super().__init__(
            crosser_cls=jit.BestStatelessCrosser,
            *args, **kwargs
        )

class MyStorer(jit.PromptStorer):
    def __init__(self, *args, **kwargs):
        super().__init__(
            formatter_cls=jit.ColumnarStorerFormatter,
            *args, **kwargs,
        )

dispatcher = jit.StaticDispatcher(
    MyLoader,
    MyAlgorithm,
    MyStorer,
)

result = dispatcher.run()

# ...

```

## Documentation
You can find the documentation at: https://jinete.readthedocs.io


## Development

You can install it simply typing:

```bash
pipenv install --dev
```

To run the tests perform:

```bash
pipenv python -m unittest discover tests
```

## Repository Contents

* [`examples`](https://github.com/garciparedes/jinete/tree/master/examples/): Basic examples to start using the library.
* [`jinete`](https://github.com/garciparedes/jinete/tree/master/jinete/): The source code of the library.
  * [`algorithms`](https://github.com/garciparedes/jinete/tree/master/jinete/algorithms/): [TODO]
    * [`exacts`](https://github.com/garciparedes/jinete/tree/master/jinete/algorithms/exacts): [TODO]
    * [`heuristics`](https://github.com/garciparedes/jinete/tree/master/jinete/algorithms/heuristics): [TODO]
    * [`metaheuristics`](https://github.com/garciparedes/jinete/tree/master/jinete/algorithms/metaheuristics): [TODO]
    * [`utils`](https://github.com/garciparedes/jinete/tree/master/jinete/algorithms/utils): [TODO]
      * [`crossers`](https://github.com/garciparedes/jinete/tree/master/jinete/algorithms/utils/crossers): [TODO]
  * [`dispatchers`](https://github.com/garciparedes/jinete/tree/master/jinete/dispatchers/): [TODO]
  * [`loaders`](https://github.com/garciparedes/jinete/tree/master/jinete/loaders/): [TODO]
    * [`formatters`](https://github.com/garciparedes/jinete/tree/master/jinete/loaders/formatters/): [TODO]
  * [`models`](https://github.com/garciparedes/jinete/tree/master/jinete/models/): [TODO]
  * [`storers`](https://github.com/garciparedes/jinete/tree/master/jinete/storers/): [TODO]
    * [`formatters`](https://github.com/garciparedes/jinete/tree/master/jinete/storers/formatters/): [TODO]
* [`setup.py`](https://github.com/garciparedes/jinete/tree/master/setup.py): The builder of this library.
* [`tests`](https://github.com/garciparedes/jinete/tree/master/tests/): The library tests.

## LICENSE
This project is licensed under [MIT](LICENSE) license.


