Skip to main content

LINE Solver for Python

This folder includes the Python version of the LINE solver.

Installation

Requirements: Python 3.11 or later.

Install from PyPI with:

pip install line-solver

Alternatively, install from source by running pip install . in this folder.

After installing, run line-install (or python3 -c "import line_solver; line_solver.line_install()") to check optional dependencies. It warns when Java or the symbolic backend is missing without failing.

Symbolic backend (optional)

The symbolic methods of SolverCTMC/SolverFLD use a SageMath service packaged as the Docker image imperialqore/line-sage-rest. It is not pulled automatically on first use, so obtain it once with docker pull imperialqore/line-sage-rest:latest; thereafter LINE starts and stops a container on its own. Without it, symbolic analysis falls back on sympy.

Documentation

The Python syntax is nearly identical to the MATLAB one, see for example the scripts in the Python examples/gettingstarted/ folder compared to the ones in the corresponding MATLAB examples/gettingstarted/ folder.

A Python version of the manual is also available.

Example

Solve a simple M/M/1 model with 50% utilization running: python3 mm1.py. You should then get as output the following pandas DataFrame

Station  JobClass     QLen     Util   RespT  ResidT    ArvR    Tput
Source   Class1          0        0       0       0       0     1.0
Queue    Class1        1.00     0.50    1.00    1.00     1.0     1.0

Alternatively, you can open and run mm1.ipynb in Jupyter.

Getting Started Examples

The examples/gettingstarted/ folder contains tutorial examples demonstrating key LINE features.

License

This package is released as open source under the BSD-3 license.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

line_solver-3.0.7.0-py3-none-any.whl (30.0 MB view details)

Uploaded Python 3

File details

Details for the file line_solver-3.0.7.0-py3-none-any.whl.

File metadata

  • Download URL: line_solver-3.0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 30.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.8.0-124-generic

File hashes

Hashes for line_solver-3.0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 498f248c892c8db0b6fa12d0bcfaf55ca8727962ca9266708b75f390be7aed0e
MD5 3fefe50d0bf5c1edc5196467c57ea3dd
BLAKE2b-256 072715755031c456e7d047a50aaf56136baf395ddb74367be37a54c10ecd3d43

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.7.0 This release

1 file

3.0.6.0

1 file

3.0.5.0

1 file

3.0.4.3

1 file

3.0.4.2

1 file

3.0.4.1

2 files

3.0.4.0

2 files

3.0.3.8

2 files

3.0.3.7

2 files

3.0.2.1

2 files

2.0.40.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page