Skip to main content

KIPET

KIPET is a Python package designed to simulate, and estimate parameters from chemical reaction systems through the use of maximum likelihood principles, large-scale nonlinear programming and discretization methods.

It has the following functionality:

  • Simulate a reactive system described with DAEs
  • Solve the DAE system with collocation methods
  • Pre-process data
  • Estimate variances of noise from the model and measurements
  • Estimate kinetic parameters from spectra or concentration data across 1 or multiple experiments with different conditions
  • Estimate confidence intervals of the estimated parameters
  • Able to estimate variances and parameters for problems where there is dosing / inputs into the system
  • Provide a set of tools for estimability analysis
  • Allows for wavelength selection of most informative wavelengths from a dataset
  • Visualize results

Installation

There are many options for installing KIPET.

PyPi


A packaged version of KIPET can be installed using:

pip install kipet

If you run into errors when installing KIPET using pip (such as when installing into a clean virtual environment), try installing the following packages beforehand:

pip install Cython numpy six
pip install kipet

Anaconda

Anaconda-Server Badge

If you are using Anaconda, KIPET can be installed using:

conda install -c kwmcbride kipet

The anaconda packages have the benefit of including pynumero ready to go, which is needed for some of the methods included in KIPET. You will need to compile these on your own if you choose to install KIPET using a different method. See the pynumero readme for more information. Otherwise, you can also use k_aug for these methods as well.

Poetry

You may also install KIPET with poetry:

poetry add kipet

GitHub

Additionally, KIPET may be installed directly from the repository (for example, if using poetry, simply install the desired branch (#branch) in the following manner):

poetry add git+https://github.com/salvadorgarciamunoz/kipet#master

Naturally you can simply clone or download the repository if you wish.

cd <installation directory>
git clone https://github.com/salvadorgarciamunoz/kipet.git
cd kipet
python setup.py install

Ipopt and k_aug

To use KIPET to its full potential, you should install Ipopt and k_aug. Ipopt is a popular solver for non-linear programs and k_aug is a new method to calculate sensitivities from the KKT matrix. The latter is required if covariances are to be calculated.

TODO: add links to the installation of each here.

To help ease the installation of these software tools, there are two scripts written for Linux OS (Debian) for installing Ipopt and k_aug. These are available here https://github.com/kwmcbride/Linux-Setup-Scripts

Examples and Tutorials

All of the example problems can be easily downloaded from the examples repository:

cd <example directory>
git clone https://github.com/kwmcbride/kipet_examples.git

To validate your installation, you can now run the test script included with the examples:

cd <example directory>/kipet_examples
python run_examples.py

License

GPL-3

Authors

- Kevin McBride - Carnegie Mellon University
- Kuan-Han Lin - Carnegie Mellon University
- Christina Schenk - Basque Center for Applied Mathematics
- Michael Short - University of Surrey
- Jose Santiago Rodriguez - Purdue University
- David M. Thierry - Carnegie Mellon University
- Salvador García-Muñoz - Eli Lilly
- Lorenz T. Biegler - Carnegie Mellon University

Please cite


  • C. Schenk, M. Short, J.S. Rodriguez, D. Thierry, L.T. Biegler, S. García-Muñoz, W. Chen (2020) Introducing KIPET: A novel open-source software package for kinetic parameter estimation from experimental datasets including spectra, Computers & Chemical Engineering, 134, 106716. https://doi.org/10.1016/j.compchemeng.2019.106716

  • M. Short, L.T. Biegler, S. García-Muñoz, W. Chen (2020) Estimating variances and kinetic parameters from spectra across multiple datasets using KIPET, Chemometrics and Intelligent Laboratory Systems, https://doi.org/10.1016/j.chemolab.2020.104012

  • M. Short, C. Schenk, D. Thierry, J.S. Rodriguez, L.T. Biegler, S. García-Muñoz (2019) KIPET–An Open-Source Kinetic Parameter Estimation Toolkit, Computer Aided Chemical Engineering, 47, 299-304.

Metadata

Release files for kipet 1.0.7

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

Source distribution (sdist)

Source distribution for kipet 1.0.7
File Size Uploaded
kipet-1.0.7.tar.gz 258.2 kB Details

Built distribution (wheel)

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

Total release size: 729.7 kB

Release files / kipet-1.0.7.tar.gz

Download URL kipet-1.0.7.tar.gz
Size 258.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3d1578f139b1e2d4a58add88a4da3235d2f0ce910b5585908ee302860cdae28a
BLAKE2b-256 checksum
How to use checksums
7d154a172bc2cfa78eff619ff7b1327bbf95980b056fc4b81e086759b181e3dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.6.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / kipet-1.0.7-py3-none-any.whl

Download URL kipet-1.0.7-py3-none-any.whl
Size 471.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d73c9883dd353a361f9cc7f1a685f68be1bcb8f7bf85952a1ad98fb8bdb7f790
BLAKE2b-256 checksum
How to use checksums
3a525fe3b725728b52b5950772ea805970d6607a63f59be1d543b3468f07d448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.6.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.31

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.53

2 release files

0.1.52

2 release files

0.1.51

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release 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