Skip to main content

Resource Allocation via Clustering

Project description


Hybrid Optimization for Time Series (HOTS)
HOTS solves problems presented as time series using machine learning and optimization methods.
The library supports multiple resource related problems (placement, allocation), presented as one or more metrics.

Requirements for running HOTS

HOTS works on any platform with Python 3.8 and up.

The dev Python version must be used to install the package (for example install the package python3.10-dev in order to use Python 3.10).

A solver needs to be installed for using HOTS. By default, GLPK is installed with HOTS, but the user needs to install the following packages before using HOTS :

  • libglpk-dev
  • glpk-utils

Installing HOTS

A Makefile is provided, which creates a virtual environment and install HOTS. You can do :

make

Running HOTS

Via Python

The application can be used simply by running :

hots /path/to/data/folder

Make sure to activate the virtual environment before running HOTS with :

source venv/bin/activate

Some parameters can be defined with the hots command, such as :

  • k : the number of clusters used in clustering ;
  • tau : the window size during the loop process ;
  • param : a specific parameter file to use.

All the CLI options are found running the help option :

hots --help

More parameters can be defined through a .JSON file, for which an example is provided in the tests folder. See the documentation, section User manual, for more details about all the parameters.

Note that a test data is provided within the package, so you can easily test the installation with :

hots /tests/data/generated_7

Via Docker

A Docker container can be easily built for running hots, using the Dockerfile provided in the package. If you are not used to Docker, you can follow the installation guideline here : https://docs.docker.com/engine/install/, and the post-install process here (Linux) : https://docs.docker.com/engine/install/linux-postinstall/.

As soon as Docker is setup, you can run the following commands (being at the root of the directory, with the Dockerfile) :

docker build -t hots .

Once the container is created, you can run it, by running the following :

docker run -it hots /bin/bash

You will be prompted to a new shell, in which you can follow the same steps as for Python.

Credits

Authors:

  • Etienne Leclercq - Software design, lead developer
  • Jonathan Rivalan - Product owner, Lead designer
  • Marco Mariani
  • Gilles Lenfant
  • Soobash Daiboo
  • Kang Du
  • Amaury Sauret
  • SMILE R&D

As HOTS was created during a PhD, credits have to be given to academic supervisors, Céline Rouveirol and Frédéric Roupin, involved in the algorithm thinking.

Links

License

This software is provided under the terms of the MIT license you can read in the LICENSE.txt file of the repository or the package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hots-0.1.8.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

hots-0.1.8-py2.py3-none-any.whl (53.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hots-0.1.8.tar.gz.

File metadata

  • Download URL: hots-0.1.8.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hots-0.1.8.tar.gz
Algorithm Hash digest
SHA256 73d2d3d2a3298ec7af0b25e91839e92cb6b11abb146cf122075a1f7e717e8ed7
MD5 7ea6a2b8f347b51d64e8fef81c2fc565
BLAKE2b-256 9a7fffe0f491733334d37735d8683eaba2f45f80e2ca97a389a364e368129f0f

See more details on using hashes here.

File details

Details for the file hots-0.1.8-py2.py3-none-any.whl.

File metadata

  • Download URL: hots-0.1.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 53.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hots-0.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ff0e28c900f99bb36984c35c5af73edd17e73397c22b1046fdc1e5b2f05e183
MD5 2b79e9ee73e5fad95cce53369096197a
BLAKE2b-256 86a546354317827f74a1abe677ab231b5a5bc5be5fd7112ee62ee9a2b561819f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page