PySCIPOpt
Python Interface to the SCIP Optimization Suite
transp.py File Reference

a model for the transportation problem More...

Go to the source code of this file.

Functions

def transp (I, J, c, d, M)
 
def make_inst1 ()
 
def make_inst2 ()
 

Variables

 I
 
 J
 
 c
 
 d
 
 M
 
 model = transp(I,J,c,d,M)
 
int EPS = 1
 
 x = model.data
 

Detailed Description

a model for the transportation problem

Definition in file transp.py.

Function Documentation

def transp.make_inst1 ( )
creates example data set 1

Definition at line 49 of file transp.py.

def transp.make_inst2 ( )
creates example data set 2

Definition at line 62 of file transp.py.

def transp.transp (   I,
  J,
  c,
  d,
  M 
)
transp -- model for solving the transportation problem
Parameters:
    I - set of customers
    J - set of facilities
    c[i,j] - unit transportation cost on arc (i,j)
    d[i] - demand at node i
    M[j] - capacity
Returns a model, ready to be solved.

Definition at line 12 of file transp.py.