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

model for the modern diet problem More...

Go to the source code of this file.

Functions

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

Variables

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

Detailed Description

model for the modern diet problem

Definition in file diet.py.

Function Documentation

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.

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

Definition at line 48 of file diet.py.