GithubHelp home page GithubHelp logo

autoaspen's Introduction

AutoAspen

AutoAspen is a comprehensive tool for conducting stochastic techno-economic analysis (TEA) using machine learning techniques. It has been developed to facilitate dataset creation, model training, parameter optimization, and Monte Carlo sampling for estimating the distributions of critical parameters, such as the minimum selling price (MFSP), in the context of chemical engineering pathways. With the power of trained models, AutoAspen is capable of:

  1. Univariate Uncertainty Analysis that evaluates the impact of individual variables on the MFSP while holding all other factors constant.

  2. Bivariate Uncertainty Analysis that provides insights into how the MFSP responds to variations in pairs of variables, which are visually represented in contour plots.

  3. Multivariate Uncertainty Analysis that allows users to modify a set of input variables simultaneously during a simulation.

Prerequisites

AutoAspen has been developed and tested on Python 3.8 with the following dependencies: numpy 1.20.2, pandas 1.0.5, scipy 1.5.0, scikit-learn 0.23.1, matplotlib 3.2.2, seaborn 0.12.0, pillow 7.2.0, xlrd 1.2.0, pythoncom, and win32com.

Usage

  1. generate_dataset_template.py: This script creates a dataset template for training by generating random values for input variables based on specified distributions defined in the var_info file. Supported distributions include: normal, alpha, beta, gamma, triangular, pareto, and bernoulli. A sample var_info file is provided here.

  2. generate_dataset.py: It generates a training dataset by invoking the Aspen model and the .xslm calculator. This step automates the traditional stochastic TEA, which usually involves iterative calls to Aspen Plus software.

  3. train_regression_model.py: This script trains and fine-tunes four machine learning models. Users can select the best-performing model for Monte Carlo simulation. Supported machine learning models include: polynomial ridge regression, linear SVM, random forest, and gradient tree boosting.

  4. predict_and_simulate.py: This script predicts the MFSP using a trained regression model and conducts univariate, bivariate, or multivariate uncertainty analysis. The distributions and baseline values of input variables are specified in the config file.

autoaspen's People

Contributors

chaowu88 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.