Skip to main content

Minnetonka is a Python package for business modeling and simulation.

Motivation

Over the last 25 years, I built many business simulation models, initially in iThink, then in Powersim, and since 2006 in Forio SimLang. Forio SimLang is great for business modeling, powerful and expressive, with great support for arrays. But lately I have encountered several occasions in which SimLang is a good solution for modeling part of the problem, and an existing Python package is a good solution for modeling another part of the problem.

For example, in 2016 I built a model in SimLang that included some simple graph logic. There are no graph primitives in SimLang, so I created the graphs using the primitives available: arrays and enums and floats. There are no built-in analytics to find the shortest path in a weighted graph, so I wrote one, using the Floyd-Warshall algorithm.

That model would have been far simpler had I used the Python package NetworkX for the graph logic, and used SimLang for the other 80% of the model. What I needed was the expressivity of SimLang, within a Python package, so I could easily integrate with NetworkX.

Minnetonka is that combination: the power of Forio SimLang for business modeling, delivered as a Python package. Minnetonka is an appropriate solution when you want to model a business (or other social organization) in Python.

Features

A Minnetonka model is a collection of variables. Each variable takes a value, a value that can be of any Python data type: an integer, a float, a tuple, an array, a dict, etc.

A Minnetonka model is simulated over time. The variables in a model take a succession of values during the simulation.

Minnetonka variables are defined in terms of other Minnetonka variables via Python functions, allowing arbitary Python code to be executed at every simulation time step, for every variable.

Minnetonka supports stocks and flows. Stocks allow circular dependencies among variables, to model the circular causality underlying many business situations.

Minnetonka introduces treatments, a primitive for value modeling. A single variable can take one value in one treatment and take a different value in a different treatment. For example, business earnings might be $20 million per year in the as-is treatment, and $25 million per year in a to-be treatment, with a planned investment generating additional earnings.

Getting Started

Installation

Dependendencies

Minnetonka requires Python 3.6, and depends on NumPy and SciPy.

Contact

Send me an email.

License

Apache License, Version 2.

Naming

Minnetonka is named after Lake Minnetonka, the ninth largest lake in the US state of Minnesota.

Release files for minnetonka 0.0.1

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

Source distribution (sdist)

Source distribution for minnetonka 0.0.1
File Size Uploaded
minnetonka-0.0.1.tar.gz 63.5 kB Details

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / minnetonka-0.0.1.tar.gz

Download URL minnetonka-0.0.1.tar.gz
Size 63.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2f0b97e79941d7728bd95ae822ce6525017ec6f93f55eb9f11217279794bfec9
BLAKE2b-256 checksum
How to use checksums
426cbe0e7adfa62f476491917e21d2b656b7efa5c074854c21685467b736b3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / minnetonka-0.0.1-py3-none-any.whl

Download URL minnetonka-0.0.1-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b56f6edba19887723038250f4c7f3133a4f01ae201034b84aed5f77aef687a2
BLAKE2b-256 checksum
How to use checksums
7750ac7ab14d7f62e07b9e997c912caa87d40922da54f0ed68143e7f4330ce1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

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