Пример #1
0
        public IEnumerable <DecisionVariableData> GetBoughtAmountDecisionVariables()
        {
            List <DecisionVariableData> retList = new List <DecisionVariableData>();

            for (int i = 0; i < numberOfFoodTypes; ++i)
            {
                retList.Add(DecisionVariableData.GetContinousDecisionVariable(0, GRB.INFINITY, cost[i], foodTypes[i]));
            }
            return(retList);
        }
Пример #2
0
        public IEnumerable <DecisionVariableData> GetNutritionDecisionVariables()
        {
            List <DecisionVariableData> retList = new List <DecisionVariableData>();

            for (int i = 0; i < NumberOfCategories; ++i)
            {
                retList.Add(DecisionVariableData.GetContinousDecisionVariable(minNutrition[i], maxNutrition[i], 0, categories[i]));
            }
            return(retList);
        }