Skip to main content

uma

uma is a Python package to collect pyomo results as pandas dataframe for easier access.

Installation

uma can be installed from PyPI using:

pip install uma

uma requires numpy and pandas to work.

Usage

uma works if the model solution is optimal. If the solution is infeasible, an error will be returned.

from uma import get_df, get_dict, get_value
from pyomo.environ import * 
from pyomo.opt import SolverFactory

model = ConcreteModel() 
model.x = Var(initialize=-1.2, bounds=(-2, 2))
model.y = Var(initialize= 1.0, bounds=(-2, 2))
model.obj = Objective( expr= (1-model.x)**2 + 100*(model.y-model.x**2)**2, sense= minimize)

solver = SolverFactory('ipopt')
solver.solve(model)

df = get_df(model)
print(df.head())

dict1 = get_dict(model)
print(dict1)

x = get_value(model.x)
print(x)

Metadata

Release files for uma 1.0

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

Source distribution (sdist)

Source distribution for uma 1.0
File Size Uploaded Provenance
uma-1.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.0 kB

Release files / uma-1.0.tar.gz

Download URL uma-1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
35bd18cb49b5eb1dfd35454a75c684737968db80896f0c492bec11a4fba1ca64
BLAKE2b-256 checksum
How to use checksums
1d6ec7d14711c9bc6db0b6394844eb03367a1626dde4924003eb5186f4374e3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / uma-1.0-py3-none-any.whl

Download URL uma-1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5f006211257552287d9f4e69a86d0a1f893457fdd126553412690d84891fc1e
BLAKE2b-256 checksum
How to use checksums
0282b8b4e477555217b6af12b4b5c087dc4dce8d93f9eed773d082aef161d74a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for uma 1.0

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.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

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