Comments (2)
An observation:
The error comes from the estimation method parameter est in the simple_1param.py:
est represents a single unknown (C) and therefore contains a single-key dict with a 1D list value <= est.json. Correspondingly, the variable b (=list of tuples of length est) of the MODESTGA object (ga_parallel.py, line 305) becomes a list of single tuple element and is passed as parameter bounds to the method minimize defined in ga.py
Therefore, len(bounds) => (len(bounds) = 1) => 1-1/len(bounds) => division by zero in line 199 of ga.py
Keeping two variables unknown (C and R1) instead of one in simple_1param.py leads to the list of bounds containing two elements => 1 - 1/len(bounds) = 1 - 1/2 = 0.5 which "fixes" the problem (optimizer finishes with no error message).
Therefore, to enable estimation of a single unknown parameter in ModestPy, it seems appropriate to replace len(bounds) by len(bounds)+0.01 in the denominator or something else of this sort. Optimizer finishes with no error message.
from modest-py.
Thanks for tracking down the error. I fixed it in modestga
: krzysztofarendt/modestga@24f69e6
You need to update the package: pip install -U modestga
from modest-py.
Related Issues (20)
- Logging should not interfere with the logger of the parent application HOT 1
- Add simple GUI HOT 1
- Add FMPy support HOT 9
- Python 3 support HOT 3
- Unit test fails on Debian 9 HOT 1
- Replace the GA implementation HOT 3
- FMU created with OpenModelica HOT 7
- Add win64 FMUs in examples and unit tests HOT 1
- Upload v. 0.0.8 to PyPi HOT 1
- run.tests() fails on Linux (WSL2, Ubuntu 18.04) HOT 1
- Unrecognized argument passed to SciPy solver HOT 1
- modestga: cannot start a new process HOT 1
- Catch an exception from FMU if solver failed and continue estimation HOT 5
- ValueError when time is floating point in _select_lp HOT 1
- Step-by-step instructions to get examples up and running HOT 6
- FMUs stored in Temp folder HOT 5
- Does not work on Ubuntu 20.04 HOT 1
- Switch to pytest HOT 1
- Refactor code with black and isort HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modest-py.