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.53.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5623b2a953b8d62def439379f2f2ed95f289c7e74d9c0ee875b311aec34fe416 |
|
MD5 | 28311a3eab09633e12c8fc7f5c9ab6dd |
|
BLAKE2b-256 | a64fccb48cbd870475da2d22a67346f5c1f76eb97849634a804ab744499959f7 |
Close
Hashes for strangeworks_optimization_models-0.1.53-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b417dbf2816f1a4a1caef5ba3c6662a72b8b8c7beaf4c55f7d4f7b7fd7e8022 |
|
MD5 | 5951c3cee9f3c88ee28423bab636e2f3 |
|
BLAKE2b-256 | e963b6b59c46fe3b870fd73ba39152a1943bac43baee03850a385da4eef39a4c |