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

Functions

def diet (F, N, a, b, c, d)
 
def make_inst ()
 

Variables

 a
 
 b
 
 c
 
 d
 
 F
 
def model = diet(F, N, a, b, c, d)
 
 N
 
 v
 
 x
 
 y
 
 z
 

Function Documentation

◆ diet()

def diet.diet (   F,
  N,
  a,
  b,
  c,
  d 
)
diet -- model for the modern diet problem
Parameters:
    - F: set of foods
    - N: set of nutrients
    - a[i]: minimum intake of nutrient i
    - b[i]: maximum intake of nutrient i
    - c[j]: cost of food j
    - d[j][i]: amount of nutrient i in food j
Returns a model, ready to be solved.

Definition at line 10 of file diet.py.

References pyscipopt.expr.quicksum().

◆ make_inst()

def diet.make_inst ( )
make_inst: prepare data for the diet model

Definition at line 49 of file diet.py.

References pyscipopt.Multidict.multidict().

Variable Documentation

◆ a

a

Definition at line 87 of file diet.py.

◆ b

b

Definition at line 87 of file diet.py.

◆ c

c

Definition at line 87 of file diet.py.

◆ d

d

Definition at line 87 of file diet.py.

◆ F

F

Definition at line 87 of file diet.py.

◆ model

def model = diet(F, N, a, b, c, d)

Definition at line 92 of file diet.py.

◆ N

N

Definition at line 87 of file diet.py.

◆ v

v

Definition at line 97 of file diet.py.

◆ x

x

Definition at line 97 of file diet.py.

◆ y

y

Definition at line 97 of file diet.py.

◆ z

z

Definition at line 97 of file diet.py.