这个非常简单的程序声明了两个决策变量:约束和目标函数。
This very simple program declares the two decision variables: the constraint and the objective function.
我们可能会纳闷,在有更多决策变量和约束的问题中,我们只能分别逐一声明每个变量和每个约束吗?
You may be wondering, in a problem with many more decision variables and constraints, would you have to declare each variable and each constraint separately?
噢,这个问题是如此简单,问题数据都作为声明中决策变量的系数直接包含在了目标函数和约束声明中。
Well, this problem is so simple that the problem data is directly included in the objective function and constraints declarations as the coefficients of the decision variables in the declarations.
应用推荐