Pydantic models for strangeworks optimization SDK and application
Project description
Strangeworks-Optimization-Models
Pydantic models for use with Strangeworks Optimization API
- StrangeworksModel is an abstract base class for all Strangeworks optimization models.
These are all in the strangeworks_optimization_models
module.
Problem Models
In problem_models
we have data structures representing the problems to be solved. these take the form
- Model is the native model used outside strangeowrks
- Model type is an enum of the types of native models
- StrangeworksModelType is an enum that defines the types of models available. These include:
- BinaryQuadraticModel
- ConstrainedQuadraticModel
- DiscreteQuadraticModel
- JiJProblem
- AquilaModel
- QuboDict
- MPSFile
- HitachiModel
- Each model has its own class, such as MPSFile, QuboDict, AquilaNDArray, and HitachiModelList. These classes contain the data for each model.
Solver Models
Ways to specify solvers. Right now they are all basically provider.solver
Solution Models
In solution_models
we have data structures representing the solutions to the problems. These take the form:
- Solution is the native solution used outside strangeworks
- Solution type is an enum of the types of native solutions
The solution models also include methods for converting the solution to a string and from a string, similar to the problem models.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for strangeworks_optimization_models-0.1.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f673ce6b4bc82fc3cfca764db3028f46fcb317b60697fb55ae06e05dcb67a62f |
|
MD5 | b72b9fce36ba599ce7711206ae7e6374 |
|
BLAKE2b-256 | 5ea05c50c4acdc5c4235461a2be5716b1a3c8deb9efe279eeb1284150b972b5a |
Close
Hashes for strangeworks_optimization_models-0.1.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1588093991ef31c1eb7d0707cd00264b9ae878b0024de075294be12204c9aebb |
|
MD5 | 243dac6a6bd70a0a2c77ec3e3c811431 |
|
BLAKE2b-256 | 39aa8ebbcc93052d87ea6abc2913a3a9d264b8b71139fad6bbb6fbe998a6c4f7 |