Skip to main content

An all-in-one tool for fitting kinetic models using spectral and other state data

Project description

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.

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

kipet-1.0.7.tar.gz (258.2 kB view details)

Uploaded Source

Built Distribution

kipet-1.0.7-py3-none-any.whl (471.5 kB view details)

Uploaded Python 3

File details

Details for the file kipet-1.0.7.tar.gz.

File metadata

  • Download URL: kipet-1.0.7.tar.gz
  • Upload date:
  • Size: 258.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for kipet-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3d1578f139b1e2d4a58add88a4da3235d2f0ce910b5585908ee302860cdae28a
MD5 2c5de49b110d9d4b9571c758360197e4
BLAKE2b-256 7d154a172bc2cfa78eff619ff7b1327bbf95980b056fc4b81e086759b181e3dc

See more details on using hashes here.

File details

Details for the file kipet-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: kipet-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 471.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for kipet-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d73c9883dd353a361f9cc7f1a685f68be1bcb8f7bf85952a1ad98fb8bdb7f790
MD5 3e49ef7da7f702646466d0b860a6d0b4
BLAKE2b-256 3a525fe3b725728b52b5950772ea805970d6607a63f59be1d543b3468f07d448

See more details on using hashes here.

Supported by

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