Skip to main content

SCOP is Solver for COnstraint Programing.

Project description

The myscop is wrapper of SCOP.

SCOP is Solver for COnstraint Programing.

Need scop and scop.py.

https://logopt.com/scop2/

Example(bin packing)

from myscop import MyLinear as L
from myscop import MyModel

items = [6, 5, 4, 3, 1, 2]  # item size
num_bins = 3  # bin size

m = MyModel()
vv = m.addvars(len(items), range(num_bins))
for b in range(num_bins):
    m.addcons(1, L(items, vv, b) <= 7)

m.optimize()
print([v.value for v in vv])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

myscop-0.0.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file myscop-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: myscop-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.6 Darwin/19.6.0

File hashes

Hashes for myscop-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a846b5febcf291f4f258464dc439723719767bc098794b8b9046191bde3a1854
MD5 116da48680178a13b515050efa261ac5
BLAKE2b-256 cc51be66f74662f3628fe4372fe1d932f7b2169629f241ccd2d24589c3e75e29

See more details on using hashes here.

Supported by

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