Step 4: Create an array to store the variables
Shows lines to create an array in a .NET application of CPLEX.
Go to the comment Step 4 in Dietlesson.cs,
and add this statement to create the array of numeric variables that
will appear in the solution.
INumVar[] Buy = new INumVar[nFoods];
At this point, only the array has been created, not the variables themselves. The variables will be created later as continuous or discrete, depending on user input. These numeric variables represent the unknowns: how much of each food to buy.