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

Simple SCIP example of linear programming. More...

Go to the source code of this file.

Variables

 model = Model("Wine blending")
 
dictionary Inventory = {"Alfrocheiro":60, "Baga":60, "Castelao":30}
 
 Grapes = Inventory.keys()
 
dictionary Profit = {"Dry":15, "Medium":18, "Sweet":30}
 
 Blends = Profit.keys()
 
dictionary Use
 
dictionary x = {}
 
 vtype
 
 name
 
dictionary c = {}
 
 dual = model.getDualsolLinear(c[i])
 

Detailed Description

Simple SCIP example of linear programming.

Definition in file lo_wines.py.

Variable Documentation

dictionary Use
Initial value:
1 = {
2  ("Alfrocheiro","Dry"):2,
3  ("Alfrocheiro","Medium"):1,
4  ("Alfrocheiro","Sweet"):1,
5  ("Baga","Dry"):1,
6  ("Baga","Medium"):2,
7  ("Baga","Sweet"):1,
8  ("Castelao","Dry"):0,
9  ("Castelao","Medium"):0,
10  ("Castelao","Sweet"):1
11  }

Definition at line 29 of file lo_wines.py.