跳至主内容
框架 无框架

操作员+

publicIlcIntExp operator+(constIlcIntExp exp1,IlcInt exp2)
publicIlcIntExp operator+IlcInt exp1, constIlcIntExp exp2)
publicIlcIntExp operator+(constIlcIntExp exp1, constIlcIntExp exp2)
定义文件: ilcp/cpext.h
包含文件: <ilcp/cpextilcp/cpext.h
重载的 C++ 运算符。

该算术运算符将参数相加。 它已被重载,以适当处理约束表达式。 结果表达式的域是根据组合表达式的域计算出来的,这也是我们所期望的。 For example, the domain of x + y is composed of all the sums of a + b where a ranges over the domain of x and b ranges over the domain of y.


操作员+

publicIlcFloatExp operator+(constIlcFloatExp exp1,IlcFloat exp2)
publicIlcFloatExp operator+IlcFloat exp1, constIlcFloatExp exp2)
publicIlcFloatExp operator+(constIlcFloatExp exp1, constIlcFloatExp exp2)
定义文件: ilcp/cpext.h
包含文件: <ilcp/cpextilcp/cpext.h
重载的 C++ 运算符。

该算术运算符将参数相加。 它已被重载,以适当处理约束表达式。 结果表达式的域是根据组合表达式的域计算出来的,这也是我们所期望的。 For example, the domain of x + y is composed of all the sums of a + b where a ranges over the domain of x and b ranges over the domain of y.

另请参阅:


操作员+

publicIloNumExprArg operator+(constIloNumExprArg x, constIloNumExprArg y)
publicIloNumExprArg operator+(constIloNumExprArg x,IloNum y)
publicIloNumExprArg operator+IloNum x, constIloNumExprArg y)
publicIloIntExprArg operator+(constIloIntExprArg x, constIloIntExprArg y)
publicIloIntExprArg operator+(constIloIntExprArg x,IloInt y)
publicIloIntExprArg operator+IloInt x, constIloIntExprArg y)
定义文件: ilconcert/iloexpression.h
返回等于参数之和的表达式。

这个重载的 C++ 运算符返回的表达式等于其参数之和。 其参数可以是数值、数值变量或其他表达式。


操作员+

publicIloNumToNumStepFunction operator+(constIloNumToNumStepFunction f1, constIloNumToNumStepFunction f2)
定义文件: ilconcert/ilonumfunc.h
创建并返回一个等于其参数函数之和的函数。

此操作符创建并返回一个等于函数 "f1和 "f2之和的函数。 参数函数 "f1和 "f2必须定义在同一区间上。 结果函数的定义区间与参数的定义区间相同。 另请参见:"IloNumToNumStepFunction".


操作员+

publicIloCumulFunctionExpr operator+(constIloCumulFunctionExpr&f1, constIloCumulFunctionExpr&f2)
定义文件: ilconcert/ilosmodel.h
重载的 C++ 函数。

这个重载的 C++ 运算符会返回一个与参数之和相等的 cumul 函数表达式。

有关累加函数表达式的更多信息,请参阅CP 优化器中的累加函数概念。