public class Diet extends ExampleFD
Modifier and Type | Field and Description |
---|---|
String[] |
food |
String[] |
ingredients |
int[] |
limits |
int |
m |
int[][] |
matrix |
int |
n |
int[] |
price |
IntVar[] |
x |
Constructor and Description |
---|
Diet() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
It executes the program optimizing the diet.
|
void |
model()
Imposes the model of the problem.
|
void |
modelKnapsack()
Imposes the model of the problem.
|
static void |
printLastSolution(Diet diet) |
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
public IntVar[] x
public int n
public int m
public String[] food
public String[] ingredients
public int[] price
public int[] limits
public int[][] matrix
Copyright © 2015. All rights reserved.