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

Functions

def make_inst1 ()
 
def make_inst2 ()
 
def make_inst3 ()
 
def mctransp (I, J, K, c, d, M)
 

Variables

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

Function Documentation

◆ make_inst1()

def mctransp.make_inst1 ( )
creates example data set 1

Definition at line 51 of file mctransp.py.

References pyscipopt.Multidict.multidict().

◆ make_inst2()

def mctransp.make_inst2 ( )
creates example data set 2

Definition at line 80 of file mctransp.py.

References pyscipopt.Multidict.multidict().

◆ make_inst3()

def mctransp.make_inst3 ( )
creates example data set 3

Definition at line 106 of file mctransp.py.

References pyscipopt.Multidict.multidict().

◆ mctransp()

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

Definition at line 14 of file mctransp.py.

References pyscipopt.expr.quicksum().

Variable Documentation

◆ c

c

Definition at line 136 of file mctransp.py.

◆ d

d

Definition at line 136 of file mctransp.py.

◆ EPS

int EPS = 1.e-6

Definition at line 143 of file mctransp.py.

◆ I

I

Definition at line 136 of file mctransp.py.

◆ J

J

Definition at line 136 of file mctransp.py.

◆ K

K

Definition at line 136 of file mctransp.py.

◆ M

M

Definition at line 136 of file mctransp.py.

◆ model

def model = mctransp(I, J, K, c, d, M)

Definition at line 137 of file mctransp.py.

◆ x

def x = model.data

Definition at line 144 of file mctransp.py.