Skip to main content

A simple optimization solverp problem

Project description

pymization

Simple solver for optimization problems.

CDS implemented

Installation

pip install pymization

Example

Code to use CDS given a matrix where rows are jobs and columns are machines.

import pymization as pym


solver = pym.Solver("CDS")
solver.load_data_from_matrix(matrix)
solver.run()

If you want to use some functions developed on CDS you can use as the follow

import pymization as pym

solver = pym.Solver("CDS")
solver.load_data_from_matrix(matrix)
solver.load_model()
solver.model.get_sets() # Retrieves order sets to Johnson's algorithm
solver.model.min_makespan(job_sequence) # Given a Johnson's ordered jobs calculate min_makespan and actualize objective_function

solver.model.final_sequence
solver.model.objective_function

Work in progress

Any inquirements:

Project details


Download files

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

Source Distribution

pymization-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file pymization-0.1.2.tar.gz.

File metadata

  • Download URL: pymization-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pymization-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e6f4d3216a822e97ce7c3e3c6e12cecb3912c8fd6560c720694a2688f74c595a
MD5 7a03bd251f1e711a02785a17a6f8809b
BLAKE2b-256 e1892bc02245f240fb1fbe188752056166dd654918cf279c9d2e8cc8a931e1f1

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