PySCIPOpt  4.3.0
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 9 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 48 of file diet.py.

References pyscipopt.Multidict.multidict().

Variable Documentation

◆ a

a

Definition at line 86 of file diet.py.

◆ b

b

Definition at line 86 of file diet.py.

◆ c

c

Definition at line 86 of file diet.py.

◆ d

d

Definition at line 86 of file diet.py.

◆ F

F

Definition at line 86 of file diet.py.

◆ model

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

Definition at line 91 of file diet.py.

◆ N

N

Definition at line 86 of file diet.py.

◆ v

v

Definition at line 96 of file diet.py.

◆ x

x

Definition at line 96 of file diet.py.

◆ y

y

Definition at line 96 of file diet.py.

◆ z

z

Definition at line 96 of file diet.py.