Click or drag to resize

XPRBsosaddElement(Double, XPRBvar) Method

Add an element to the XPRBsos.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int addElement(
	double val,
	XPRBvar var
)

Parameters

val  Double
The double coefficient of the new element.
var  XPRBvar
The XPRBvar which forms one part of the element.

Return Value

Int32
0 on success.
Example
C#
XPRBprob prob = new XPRBprob("NewProb");
XPRBsos sos = new XPRBsos();
XPRBvar var = new XPRBvar("Variable");
...
sos.addElement(3.14, var);
See Also