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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strangeworks_optimization_models-0.1.63.tar.gz.
File metadata
- Download URL: strangeworks_optimization_models-0.1.63.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.17 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa25afe3312059d3694fb941993f43ffac1b86e81552d9a6139fc1951d218158
|
|
| MD5 |
ab813dc3fa3b677bc455d49da56b6db8
|
|
| BLAKE2b-256 |
504d5eb213fff6db58ad3691767857552b2936bbdf04c67a61a188251c3964f7
|
File details
Details for the file strangeworks_optimization_models-0.1.63-py3-none-any.whl.
File metadata
- Download URL: strangeworks_optimization_models-0.1.63-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.17 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61eb4acb14c7f545d8e02e4754e663af91ec1e01ed8fd7973f5d7fbbdca5fa22
|
|
| MD5 |
391c16edcce31cfd54cae397f4053fce
|
|
| BLAKE2b-256 |
df9326a1dc5234df4e940b86565304ae76fc9bed4c14cc5b84c0bd0f75f62e4d
|