NlExpr.NlExpr()

NlExpr的构造函数。

概要

NlExpr(double constant)

参量

constant: NlExpr中的常值。

NlExpr.NlExpr()

使用变量和其系数构造的非线性表达式。

概要

NlExpr(Var var, double coeff)

参量

var: 添加的这一项对应的变量。

coeff: 可选,添加的这一项对应的参数。

NlExpr.NlExpr()

使用线性表达式构造的非线性表达式。

概要

NlExpr(Expr expr)

参量

expr: 初始的线性表达式。

NlExpr.NlExpr()

使用二次表达式构造的非线性表达式。

概要

NlExpr(QuadExpr expr)

参量

expr: 初始的二次表达式。

NlExpr.AddConstant()

增加非线性表达式中的常数。

概要

void AddConstant(double constant)

参量

constant: 非线性表达式中的常数改变量。

NlExpr.AddLinExpr()

添加一个线性表达式的项,并乘以倍数。

概要

void AddLinExpr(Expr expr, double mult)

参量

expr: 需要添加的线性表达式。

mult: 可选的系数倍数,默认值为1.0。

NlExpr.AddNlExpr()

添加一个非线性表达式的项,并乘以倍数。

概要

void AddNlExpr(NlExpr expr, double mult)

参量

expr: 需要添加的非线性表达式。

mult: 可选的系数倍数,默认值为1.0。

NlExpr.AddQuadExpr()

添加一个二次表达式的项,并乘以倍数。

概要

void AddQuadExpr(QuadExpr expr, double mult)

参量

expr: 需要添加的二次表达式。

mult: 可选的系数倍数,默认值为1.0。

NlExpr.AddTerm()

向非线性表达式中添加一线性项。

概要

void AddTerm(Var var, double coeff)

参量

var: 新线性项中的变量。

coeff: 可选,新线性项中的系数。

NlExpr.AddTerms()

向非线性表达式中添加一些线性项。

概要

void AddTerms(VarArray vars, double[] coeffs)

参量

vars: 新线性项中的一批变量。

coeffs: 新线性项中的系数数组。

NlExpr.AddTerms()

向非线性表达式中添加一些线性项。

概要

void AddTerms(Var[] vars, double[] coeffs)

参量

vars: 新线性项中的变量数组。

coeffs: 新线性项中的系数数组。

NlExpr.Clear()

清空非线性表达式。

概要

void Clear()

NlExpr.Clone()

深度拷贝非线性表达式。

概要

NlExpr Clone()

返回值

新的非线性表达式对象。

NlExpr.Divide()

对非线性表达式自除以另一个表达式。

概要

void Divide(NlExpr expr)

参量

expr: 表达式,包括非线性表达式,二次表达式,线性表达式,变量和常量。

NlExpr.GetConstant()

获取非线性表达式中的常数项。

概要

double GetConstant()

返回值

非线性表达式中的常数项。

NlExpr.GetLinExpr()

获取非线性表达式中的线性表达式。

概要

Expr GetLinExpr()

返回值

线性表达式对象。

NlExpr.Multiply()

对非线性表达式自乘另一个表达式。

概要

void Multiply(NlExpr expr)

参量

expr: 表达式,包括非线性表达式,二次表达式,线性表达式,变量和常量。

NlExpr.Negate()

对非线性表达式取反。

概要

void Negate()

NlExpr.Reserve()

预分配大小为n项的空间。

概要

void Reserve(int n)

参量

n: 预分配空间的大小。

NlExpr.SetConstant()

设置非线性表达式中的常数。

概要

void SetConstant(double constant)

参量

constant: 非线性表达式中的常数。

NlExpr.Size()

获取非线性表达式中的非线性字段大小。

概要

long Size()

返回值

非线性表达式中的非线形字段大小。