Skip to main content

Desktop OR planner

Project description

d-OR-plan

Desktop OR Planner. A desktop wrapper for applications based on the Cornflow-client format. Check out the Cornflow project. Here is a guide on how to configure an app in the right format.

Another option is just to check the tests/data/graph_coloring example that comes inside the project.

Installation

Running uv or pip should work:

Using uv:

uv install dorplan

If reports are required, install the reports dependencies:

uv install dorplan[reports]

In the case of windows, you will also need to install quarto separately. You can find the instructions here.

This is until the quarto team fixes this issue: https://github.com/quarto-dev/quarto-cli/issues/12314

Using pip

python -m pip install dorplan

Testing

If you want to test the example app, run:

python -m unittest dorplan.tests.test_app.AppTest.test_open_app

Functionality

  • Import and export data (in json format and Excel).
  • Load example data.
  • Solve an instance.
  • Show interactive logs in the GUI.
  • Stop a running solver, if the correct callback is implemented.
  • Generate report, if a quarto report is available.
  • Open the report in a new browser tab.

How to run it

In its simplest form, you can just pass it the Cornflow ApplicationCore class and the initialized options for the solver. More information on how to create an Cornflow-compatible Application here. Alternatively, check the example in dorplan/tests/data/graph_coloring/__init__.py

The app will be opened in a new window, and you can interact with it.

from dorplan.app import DorPlan
from dorplan.tests.data.graph_coloring import GraphColoring

app = DorPlan(GraphColoring, {})

Functionality

It's possible to load one of the test cases from the app

After setting a time limit, you can solve the instance by clicking on "Generate plan" and look at the progress in the GUI. You can also stop the execution (if the solver is configured to do it).

You can generate a report if the solver has a Quarto report available and you installed the reports dependencies.

The report will then appear on the screen (with terrible format).

report

But you can always open it in a new browser tab by clicking the "Open report" button.

report

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

dorplan-0.2.1.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dorplan-0.2.1-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file dorplan-0.2.1.tar.gz.

File metadata

  • Download URL: dorplan-0.2.1.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dorplan-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f0bc97ee709a0e6a3348c3250c86a1233368590abcbcaf31de8e86306ce30dd1
MD5 84dd3082ac67c2902f5d92e6950f56c4
BLAKE2b-256 3c0122306dc29283feabef0d6e6228cf142333ca836e52ab8bca75d60b15f56b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dorplan-0.2.1.tar.gz:

Publisher: publish-to-test-pypi.yml on pchtsp/dorplan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dorplan-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dorplan-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dorplan-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ff1e18c6abe481d24aa3c46c934d2714035d931757bf56043d39ddea831c5ea
MD5 95e8b9dd2d85e877565880a031d4eaac
BLAKE2b-256 51578769d6506deda6d52a4d1ad96ecc5fef447c700a8de9218b7a48fac423fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for dorplan-0.2.1-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on pchtsp/dorplan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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