Skip to main content

Pydantic models for strangeworks optimization SDK and application

Project description

Tests

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

strangeworks_optimization_models-0.1.65.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file strangeworks_optimization_models-0.1.65.tar.gz.

File metadata

File hashes

Hashes for strangeworks_optimization_models-0.1.65.tar.gz
Algorithm Hash digest
SHA256 e3a613be7ccf0dd45c8c2b4152d6cc77dc23b5a67fe22ded2e25a2314817ddab
MD5 496f3359962028834b5384b268e961d2
BLAKE2b-256 0afea62ad9e12853d2a1ba9617f5123532fe6ee7cf4c2c104bdfcfbba9523e95

See more details on using hashes here.

File details

Details for the file strangeworks_optimization_models-0.1.65-py3-none-any.whl.

File metadata

File hashes

Hashes for strangeworks_optimization_models-0.1.65-py3-none-any.whl
Algorithm Hash digest
SHA256 b132759c329788ad5d5fb0ab68db125a57c560a58e9d27c188e91c9389bab3fa
MD5 5fbd212d996314bf3d57613af1bd467d
BLAKE2b-256 9c8d992db15a8e7bfc2b995d79edcd3c8d4371199fad31c0cd1c43898e4d3108

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page