linexpr.addConstant()


linexpr.addConstant()

addConstant.( C )

将常量添加到线性表达式中。

论点:

C:常量添加到表达式。

示例用法:

expr = x + 2 * y expr.addconstant(0.1)