Step 10: Set up columns

Shows lines to build the model by columns.

Go to the comment Step 10 in Dietlesson.cs, and add the following lines to set up your application to build the problem by columns.


   internal static void BuildModelByColumn(IMPModeler model,
                                           Data       data,
                                           INumVar[]  Buy,
                                           NumVarType type) {
      int nFoods = data.nFoods;
      int nNutrs = data.nNutrs;

Those lines begin a static method that the next steps will complete.