Surropt
Surrogate optimization toolbox for time consuming models
Installation
To install the module in develop moode, first you need to setup an environment with the following packages:
- SciPy >= 1.2.0
- Numpy >= 1.15.0
- pyDOE2 >= 1.2
- pydace >= 0.1.1
- cyipopt >= 1.0.3
Having these installed, open a terminal window, navigate to the folder where the setup.py file is located and execute the following command:
$python setup.py develop
After this you are ready to use the package via python command line.
Usage
Optimization server
Server environment installation
Make sure WSL Ubuntu is installed (NOT UBUNTU LTS, IT HAS TO BE PURE UBUNTU) in your system.
Make sure that Anaconda is installed in your WSL system.
Open a WSL terminal and navigate to folder tests_/resources/ipopt_server/.
Install the server by executing the following line in the WSL terminal:
conda env create -f ipopt_server.yaml
Starting the server
Each time you are going to perform a optimization through Caballero's algorithm using the DockerNLPOptions as NLP solver, you have to start the server manually. To do so, execute the following steps:
- Open a WSL terminal and navigate to folder tests_/resources/ipopt_server/
- Activate the
ipopt_serverconda environment - Start the server by typing in the WSL terminal:
$python server.py - If everything is fine, you should see that a flask server is initialized
- To make sure that the server is good to go, open a browser window and type
localhost:5000. You should see the following message on your browser: "Hey! I'm running from Flask in a Docker container!". If so, you can close the browser tab (do not close the WSL terminal while performing the optimization!) and proceed normally.
Optimization procedure
-
Start the optimization server.
-
See file test_evap.py in folder tests_/surropt/caballero/. You can run it to see how a simple example of usage the Caballero procedure is done.
Metadata
Release files for surropt 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| surropt-0.0.12.tar.gz | 30.6 kB | Without provenance | Details for surropt-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| surropt-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for surropt-0.0.12-py3-none-any.whl |
Total release size: 65.7 kB
Release files / surropt-0.0.12.tar.gz
| Download URL | surropt-0.0.12.tar.gz |
|---|---|
| Size | 30.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96179e57cc1e80160eadbea7f46255d0c1bd844105175a6d00c5c42a78cf0101
|
|
BLAKE2b-256 checksum How to use checksums |
64c8c96c250db1ea8b82b84983633cc7938acf543bd3b7b027850df04eda32ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.8.10 Linux/5.4.72-microsoft-standard-WSL2
|
Release files / surropt-0.0.12-py3-none-any.whl
| Download URL | surropt-0.0.12-py3-none-any.whl |
|---|---|
| Size | 35.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd6f2f79863ebd2a32d134a2d1e2a96f54ef33d725f32499b2f25f612250aebb
|
|
BLAKE2b-256 checksum How to use checksums |
6f168278222abfb0e81b383dcda265ca4eadf1c5b5484251bfec3efbd93d3381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.8.10 Linux/5.4.72-microsoft-standard-WSL2
|
Security for surropt 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.