PySCIPOpt  5.1.1
Python Interface for the SCIP Optimization Suite
transp Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ make_inst1()

def transp.make_inst1 ( )
creates example data set 1

Definition at line 50 of file transp.py.

References pyscipopt.Multidict.multidict().

◆ make_inst2()

def transp.make_inst2 ( )
creates example data set 2

Definition at line 63 of file transp.py.

References pyscipopt.Multidict.multidict().

◆ transp()

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 13 of file transp.py.

References pyscipopt.expr.quicksum().

Variable Documentation

◆ c

c

Definition at line 76 of file transp.py.

◆ d

d

Definition at line 76 of file transp.py.

◆ EPS

int EPS = 1.e-6

Definition at line 83 of file transp.py.

◆ I

I

Definition at line 76 of file transp.py.

◆ J

J

Definition at line 76 of file transp.py.

◆ M

M

Definition at line 76 of file transp.py.

◆ model

def model = transp(I, J, c, d, M)

Definition at line 78 of file transp.py.

◆ x

def x = model.data

Definition at line 84 of file transp.py.