Simple SCIP example of linear programming.
More...
Go to the source code of this file.
|
| 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]) |
|
Simple SCIP example of linear programming.
Definition in file lo_wines.py.
Initial value: 2 (
"Alfrocheiro",
"Dry"):2,
3 (
"Alfrocheiro",
"Medium"):1,
4 (
"Alfrocheiro",
"Sweet"):1,
9 (
"Castelao",
"Medium"):0,
10 (
"Castelao",
"Sweet"):1
Definition at line 29 of file lo_wines.py.