NlExpr.NlExpr()

Constructor of a nonlinear expression with a constant.

Synopsis

NlExpr(double constant)

Arguments

constant: constant value in nonlinear expression object.

NlExpr.NlExpr()

Constructor of a nonlinear expression with one linear term.

Synopsis

NlExpr(Var var, double coeff)

Arguments

var: variable for the added term.

coeff: optional, coefficent for the added term.

NlExpr.NlExpr()

Constructor of a nonlinear expression with a linear expression.

Synopsis

NlExpr(Expr expr)

Arguments

expr: linear expression.

NlExpr.NlExpr()

Constructor of a nonlinear expression with a quadratic expression.

Synopsis

NlExpr(QuadExpr expr)

Arguments

expr: quadratic expression.

NlExpr.AddConstant()

Add constant to the nonlinear expression.

Synopsis

void AddConstant(double constant)

Arguments

constant: value to be added.

NlExpr.AddLinExpr()

Add a linear expression to self.

Synopsis

void AddLinExpr(Expr expr, double mult)

Arguments

expr: linear expression to be added.

mult: optional, constant multiplier, default value is 1.0.

NlExpr.AddNlExpr()

Add a nonlinear expression to self.

Synopsis

void AddNlExpr(NlExpr expr, double mult)

Arguments

expr: nonlinear expression to be added.

mult: optional, constant multiplier, default value is 1.0.

NlExpr.AddQuadExpr()

Add a quadratic expression to self.

Synopsis

void AddQuadExpr(QuadExpr expr, double mult)

Arguments

expr: quadratic expression to be added.

mult: optional, constant multiplier, default value is 1.0.

NlExpr.AddTerm()

Add a linear term to nonlinear expression object.

Synopsis

void AddTerm(Var var, double coeff)

Arguments

var: variable of new linear term.

coeff: optional, coefficient of new linear term.

NlExpr.AddTerms()

Add linear terms to nonlinear expression object.

Synopsis

void AddTerms(VarArray vars, double[] coeffs)

Arguments

vars: variables for added linear terms.

coeffs: coefficient array for added linear terms.

NlExpr.AddTerms()

Add linear terms to nonlinear expression object.

Synopsis

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

Arguments

vars: variable array for added linear terms.

coeffs: coefficient array for added linear terms.

NlExpr.Clear()

Clear nonlinear expression object.

Synopsis

void Clear()

NlExpr.Clone()

Deep copy nonlinear expression object.

Synopsis

NlExpr Clone()

Return

cloned nonlinear expression object.

NlExpr.Divide()

Divide itself by an expression.

Synopsis

void Divide(NlExpr expr)

Arguments

expr: expression operand, including NlExpr, QuadExpr, Expr, Var and constant.

NlExpr.Evaluate()

Evaluate nonlinear expression after solving.

Synopsis

double Evaluate()

Return

value of nonlinear expression.

NlExpr.GetConstant()

Get constant in nonlinear expression.

Synopsis

double GetConstant()

Return

constant in nonlinear expression.

NlExpr.GetLinExpr()

Get linear expression of nonlinear expression.

Synopsis

Expr GetLinExpr()

Return

linear expression object.

NlExpr.Multiply()

Multiply itself by an expression.

Synopsis

void Multiply(NlExpr expr)

Arguments

expr: expression operand, including NlExpr, QuadExpr, Expr, Var and constant.

NlExpr.Negate()

Negate itself.

Synopsis

void Negate()

NlExpr.Reserve()

Reserve capacity to contain at least n items.

Synopsis

void Reserve(int n)

Arguments

n: capacity of nonlinear constraint objects.

NlExpr.SetConstant()

Set constant for the nonlinear expression.

Synopsis

void SetConstant(double constant)

Arguments

constant: the value of the constant.

NlExpr.Size()

Get size of tokens in nonlinear expression.

Synopsis

long Size()

Return

size of none-linear tokens.