Enables the formulation of nonlinear models for industrial optimization problems.
Project description
dwave-optimization
dwave-optimization enables the formulation of nonlinear models for industrial optimization problems. The package includes:
a class for nonlinear models used by the Leap service’s quantum-classical hybrid nonlinear-program solver.
model generators for common optimization problems.
(For explanations of the terminology, see the Ocean glossary.)
Example Usage
The flow-shop scheduling problem is a variant of the renowned job-shop scheduling optimization problem. Given n jobs to schedule on m machines, with specified processing times for each job per machine, minimize the makespan (the total length of the schedule for processing all the jobs). For every job, the i-th operation is executed on the i-th machine. No machine can perform more than one operation simultaneously.
This small example builds a model for optimizing the schedule for processing two jobs on three machines.
from dwave.optimization.generators import flow_shop_scheduling
processing_times = [[10, 5, 7], [20, 10, 15]]
model = flow_shop_scheduling(processing_times=processing_times)
See the documentation for more examples.
Installation
Installation from PyPI:
pip install dwave-optimization
During package development, it is often convenient to use an editable install. See meson-python’s editible installs for more details.
pip install -r requirements.txt
pip install --no-build-isolation --config-settings=editable-verbose=true --editable .
License
Released under the Apache License 2.0. See LICENSE file.
Contributing
Ocean’s contributing guide has guidelines for contributing to Ocean packages.
dwave-optimization includes some formatting customization in the .clang-format and setup.cfg files.
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 Distributions
Hashes for dwave_optimization-0.3.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd8971e679a9e0f3bc6420d09e40de7683e731813cdcf2d547ad312f27ca7492 |
|
MD5 | b039c9f7df33f3095dadccf75157a6b8 |
|
BLAKE2b-256 | 48e13276bfea42619c9f3218447d06a19c61f36901c2e2a2fc9970401dd34504 |
Hashes for dwave_optimization-0.3.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b7eb880ffe4980a22a81d061e017de6b7aa78bc334b686c80615d03e15931a |
|
MD5 | 20c11e73453753dd3c71c177d73cc72f |
|
BLAKE2b-256 | 60fcd89ee1e38ae814729f404145c7c08e666c529ea713c7a1578b26057f3c89 |
Hashes for dwave_optimization-0.3.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a3eec946fa2abbb5cadb24967d0be6a1c2d2f4700b72070e048759d73cb284 |
|
MD5 | dd632a51806f6b3abef1d7ee7bfb105a |
|
BLAKE2b-256 | 2e74e813c0e4089921eccfccb58b8ad5457e9f21401db648b025e19139fd3bf6 |
Hashes for dwave_optimization-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e08a6668374de31df567b9cdd6839f273fe45e7a7723df7aabd0664e39246b1 |
|
MD5 | 0d807c6816805e27be3b159f3a18fc61 |
|
BLAKE2b-256 | 80cec528377efa55ce88100b34c0857575051eea3f16445a5f5cc103e22c5723 |
Hashes for dwave_optimization-0.3.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad12a29958502d9abf2efec52bb2a2305493cbe48d99b08a10abeb532001fcb |
|
MD5 | ed3ede34cc0e8461c0324dfc76efde97 |
|
BLAKE2b-256 | 1e887b94e5f72ee5b384916e23d4ceda7fdf610b1bbf9e58e40a799e1f2216e7 |
Hashes for dwave_optimization-0.3.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d7f6dc1a474d6831226a62023040c100d91d0bdb1abc0ad91a584557bbded3 |
|
MD5 | e65aee874d937606afdff823368ba75b |
|
BLAKE2b-256 | e354c8e112f658b02e46c527070ad924c00a2586662d9de64149b15d643138ad |
Hashes for dwave_optimization-0.3.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02635ce525baf8280a0d0b38593d60b40b30fb9a276860c346d5057d9023f461 |
|
MD5 | 3b52289486ec88786620a91994bc4a79 |
|
BLAKE2b-256 | 42a5e1357bbbf2092f2ad7c649f3fb4471c7b880ca97d495ddcd725b20f5250d |
Hashes for dwave_optimization-0.3.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85ba8d479db695b33f296d3dd676a40c1c10e96dbd7280c2ff2946b7a908e89a |
|
MD5 | a5a2a2e8a28429723ee6d9bb59774c99 |
|
BLAKE2b-256 | 2a0599ff84e733b8eec8db9a423cd053aaddbfeaf5109b570945000340d79da8 |
Hashes for dwave_optimization-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17a76cf9d5b46393dd78388925018f7b32953f7b676b720c9f12dd305f6fce4d |
|
MD5 | 9091531e7c2e206e7767e637b7b909d1 |
|
BLAKE2b-256 | 716647e8f04d15f5e39bf47850e448f1f5f39f983f12dad7952c9e1f8df73e81 |
Hashes for dwave_optimization-0.3.0-cp311-cp311-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52d14f95931fdeaebced127269042d8f98f4630cd99e6bd3ad7e74ea7d096d2b |
|
MD5 | 1135af6d1514368deb19dbd11b922c98 |
|
BLAKE2b-256 | db1c6ae7eea81d4d127d08b389dd065b726a57ae4bf573cbe0cbfbe408f5bf42 |
Hashes for dwave_optimization-0.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f639e88d99fb6373c9ded69fcf08b1dfd0b22eabb567fcb09f22df3da7d413a |
|
MD5 | 263f5f1c0be3012efc3310036c707208 |
|
BLAKE2b-256 | 12ca2a77621c192b669124bf80d3d4f8726820dceb66cf9d03e7c05f01ebef38 |
Hashes for dwave_optimization-0.3.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50de394ea4c9df673e664a5ff8684e79cd8a47f7a50e361866af7fb44a40ef67 |
|
MD5 | 57390968bf5e68d682c1c8b8ea8e57f5 |
|
BLAKE2b-256 | c3878df3d0f2f65c37e445ab647744363bda98a3d9be5a890eec5d1844976b86 |
Hashes for dwave_optimization-0.3.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1d8066221077c765769bd6cbab0511791b4c8fda07b870af26fb18dc085d7d |
|
MD5 | 00e3c496a04c13b251d67549bab3c2fb |
|
BLAKE2b-256 | 4123360a74961626b407898e88c1ad2ace9093fb830172a65bc5c7a455d4e057 |
Hashes for dwave_optimization-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41d722e31adbb408bdbb840371886d95f32ddbbcc3eb3b61b09eb63f6d1b67d |
|
MD5 | 08e83a12749b7e5dd2a9848122080636 |
|
BLAKE2b-256 | 8f31cf900d8ec26e2f8e788bfb269514ebcacd5fa460603dc82b5d675470c2ce |
Hashes for dwave_optimization-0.3.0-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce7f692ecb0d912e28cf561cef828dc473290e4d9184cfca02e1b5c6b675b8ed |
|
MD5 | f3d720a4fb4dcf126e061def77032897 |
|
BLAKE2b-256 | 4ce5c2351a14ba9a931d476800cd13b047d6c7008f497a87a3048c1e295ed0d3 |
Hashes for dwave_optimization-0.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53b0ef2179fb24b8c4e6052d8281994480352c91dded7695f0659cfbc0a1a1bc |
|
MD5 | 5e3cee70bc36348ff2d879c05c81b0a3 |
|
BLAKE2b-256 | c23cf8842395d26a5981f2e7afd8012add67b57c7d7c1e72a50e70bf733b9360 |
Hashes for dwave_optimization-0.3.0-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73c10d7969f1bb282496872467bb8effeb1de74c674262ec812870ec9fa3138 |
|
MD5 | 8f09b6328e266ebff07d83593b776910 |
|
BLAKE2b-256 | 3128d77c2f5e54c88f8acdc24b9a9e8397b8e2dfe8c4f673d1746be034d4cfb4 |
Hashes for dwave_optimization-0.3.0-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9717175f44eb0947e85c5dc13bead6e55bc8ed13481b47b3b0bd60f46f43da2 |
|
MD5 | bfe67a8fdd4b4d7144424fb78f1ab352 |
|
BLAKE2b-256 | 2ccb70fed51b263900c6d79861c9d1d39f4df67381f2cc18f1249a472b1e07b3 |
Hashes for dwave_optimization-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ccaf300cb3d3c20bb5077189dbc51df06b21c96ca8fadb85ad183f06197845 |
|
MD5 | 4bdf7fd4c1978816718698a6cc4e3ffb |
|
BLAKE2b-256 | db8b99fa6619d1997fadee280802941e904fafc67f5f6abdf5b2a4ba3be55378 |
Hashes for dwave_optimization-0.3.0-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3750eb64812db6306ee4d34c98bbc1ff52bb9025001d08dcc6ae577d7ab66bcf |
|
MD5 | 63baa18dce10e1b0ce87a59ef11c6fb8 |
|
BLAKE2b-256 | cbaab15a1b2b3a715ed52fd143e54a59ba4245c09b9d4ef334af615cba9fd60e |
Hashes for dwave_optimization-0.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb85a2c36ad2b6457dd87c1f4ff1dcf2b6b135d4b0ab551dc61369ad0582358 |
|
MD5 | 27df9d254367b2157bc051b8b85144eb |
|
BLAKE2b-256 | e7d83bb63d106614bc896b0d18f1aea336a69562480f7b14ae9e455fa7c3feb0 |
Hashes for dwave_optimization-0.3.0-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f45b708880a8a5c53b3ae5be469c97bacbcf354f48e926c703329709b566db9 |
|
MD5 | 26dd05581e71fc8833ca963fc460229a |
|
BLAKE2b-256 | 368636e9366935e826628b45709d025120cc0f8d57bbf33d2045c9e3b5cff145 |
Hashes for dwave_optimization-0.3.0-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c62bcc5f89c95f38fc60ce47e30f7c440c5b0f21e96eaac6f4f65469f5a554a7 |
|
MD5 | 0bbb81d1b3c844173dc87ee544e4ac58 |
|
BLAKE2b-256 | a547a6545b3c433a9c7c6ac5ea8541f97160c60952bbd22502b0420245593704 |
Hashes for dwave_optimization-0.3.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a10315a3fabf11c97c18e3045f3741dee6d996097208d7ad2a4c5dbc5dc9ac0 |
|
MD5 | a2f53161e0533ea3b1646af7697cb159 |
|
BLAKE2b-256 | e2ae8f163e566dc004dc4ae7004ad4d9b1c0e39fcc04a3ff741083c115cb9847 |
Hashes for dwave_optimization-0.3.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903d37ef7d9b20b0d1db2bf06fcac8ae0cb7899e97931f4c61fd617bc2507c6b |
|
MD5 | 5de680a38f8d397013a7b259775fd7b0 |
|
BLAKE2b-256 | a69d0e99d5992eef10bf4c96fceb5c10fd7b4118de9a1128b391bc3998ca0ec7 |