Metadata-Version: 2.1
Name: strangeworks-optimization
Version: 0.2.21
Summary: This SDK extends the Strangeworks SDK to provide access to the Strangeworks Optimization API.
License: Apache-2.0
Author: Strange Devs
Author-email: hello@strangeworks.com
Requires-Python: >=3.10,<3.12
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: dill (>=0.3.7,<0.4.0)
Requires-Dist: dimod (>=0.12.7,<0.13.0)
Requires-Dist: jijmodeling (>=1.0.3)
Requires-Dist: strangeworks (>=0.5.5,<0.6.0)
Requires-Dist: strangeworks-optimization-models (>=0.1.43,<0.2.0)
Description-Content-Type: text/markdown

![Tests](https://github.com/strangeworks/strangeworks-optimization/actions/workflows/cron_test.yml/badge.svg)

# strangeworks-optimization

[Docs](https://docs.strangeworks.com/apps/optimization)


## Usage

```python
# model has been created and is one of the StrangeworksModelTypes
model = ...
solver = "my_provider.my_solver"
optimizer = StrangeworksOptimizer(model, solver)
optimizer.run()
print(optimizer.status())
print(optimizer.results())
```

### Dev notes

```bash
gcloud beta logging tail "resource.type=cloud_run_revision AND resource.labels.service_name=svc-optimization severity>=ERROR"
gcloud beta logging tail "resource.type=cloud_run_revision AND resource.labels.service_name=svc-dwave-prod"


resource.type = "cloud_run_revision"
resource.labels.service_name = "svc-optimization"
resource.labels.location = "us-central1"
 severity>=DEFAULT
-textPayload NOT "job_updater|sw-optimization-service"
```

