Skip to main content

PySolverView

PySolverView provides a common interface and convergence histories for optimization and root finding, including native SciPy methods and custom solvers with step controls.

Features

  • Print and visualize convergence history
  • Streamlined problem definition (object-oriented)
  • Improved function and gradient evaluation to avoid unnecesary model evaluations
  • Controlled Levenberg-Marquardt, Powell hybrid, Newton-Raphson, and Gauss-Newton through NonlinearSystemSolver(library="pysolver"); native SciPy remains the default

The root solver guide explains options, scaling, callbacks, and result accounting. Run the single four-solver demo to compare accepted convergence histories. Benchmark suites and timing studies remain under development studies.

Custom roots enable Jacobian-based numerical scaling by default; disable it with options={"jacobian_scaling": False}. User-defined physical step scales and limits retain their meaning. The radiative heat demo compares controlled and large-step runs on a 1000-variable collocation problem.

Documentation

Install the checkout before running tests or demos; the package lives under src/pysolver_view/:

python -m pip install -e .
# Optional physical benchmark models:
python -m pip install -e '.[thermodynamics]'

Install development dependencies with poetry install --with dev --extras jax. Add the thermodynamics extra to run the optional CoolProp model checks as well. Custom SLSQP requires SciPy 1.17.1, which is selected automatically on Python 3.11 and newer. Python 3.10 retains its existing SciPy dependency range for native methods and custom roots; the full test suite needs Python 3.11 or newer.

poetry run python tests/run_tests.py
# Run just one of the configured suites:
poetry run python tests/run_tests.py --suite package
poetry run python tests/run_tests.py --suite studies
poetry run python docs/build_docs.py --no-autobuild

Documentation is authored in Markdown under docs/source/; the builder generates the API reference and writes HTML to docs/_build/html/. Omit --no-autobuild for a live preview. See the documentation build guide for the source structure, authoring conventions, and additional build options.

Control test paths and default pytest options in tests/run_tests.py. By default it runs the complete tests/ tree, including study checks, with Hessian validation excluded from the agreed migration scope. Both existing CI test jobs call this same script.

The source-layout migration guide documents canonical imports, compatibility exports, optional dependencies and the explicit JAX configuration API. The package name, distribution name and version remain unchanged.

Please refer to the documentation for:

  • Installation instructions
  • Tutorials showing how to use the code
  • Complete documentation of all functions and classes in PySolverView

Version bumping

Version bumps use bump-my-version, configured in .bumpversion.toml. Install the development tools with poetry install --with dev, then commit your work before bumping:

# Preview the next patch version without modifying files.
poetry run bump-my-version bump --dry-run --verbose patch

# Choose one increment: patch, minor, or major.
poetry run bump-my-version bump patch

# Push the version commit and release tag from main.
git push origin main --follow-tags

The tool updates pyproject.toml, src/pysolver_view/__init__.py, and its own current-version setting. docs/conf.py reads the package version automatically. It creates a version commit and an annotated vX.Y.Z tag; pushing the tag triggers the release workflow. A real bump requires a clean working tree.

Other info

  • Pygmo and pygmo-plugin-nonfree should be installed with Conda

Metadata

Release files for pysolver_view 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysolver_view 0.7.2
File Size Uploaded Provenance Actions
pysolver_view-0.7.2.tar.gz 112.4 kB Without provenance Details for pysolver_view-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysolver_view 0.7.2
File Interpreter ABI Platform Actions
pysolver_view-0.7.2-py3-none-any.whl Python 3 none any Details for pysolver_view-0.7.2-py3-none-any.whl

Total release size: 271.2 kB

Release files / pysolver_view-0.7.2.tar.gz

Download URL pysolver_view-0.7.2.tar.gz
Size 112.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7845cb16fffa3f30664d5cb719a990dbc6a433faf1ff6d5e1486fd9ec2bbd0a0
BLAKE2b-256 checksum
How to use checksums
6c82c4336116108f899560b0ddcd44c88af41088214603ab8158cc7dc725dc8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.15 Linux/6.17.0-1022-azure

Release files / pysolver_view-0.7.2-py3-none-any.whl

Download URL pysolver_view-0.7.2-py3-none-any.whl
Size 158.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d102f49bd56cf095c1b8e55f9cc169a18a61ee8eb7480392a7d90c8b0af7bc75
BLAKE2b-256 checksum
How to use checksums
3be96358a80d3feda8a711b143517ada4176289e9894c97d51e996c4560915ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.15 Linux/6.17.0-1022-azure

Security for pysolver_view 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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