Export (0) Print
Expand All

ITermModel.AddOperation Method (TermModelOperation, Int32%, Int32, Int32, Int32)

Solver Foundation 3.0

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds an operation row for a three-operand operation to a model.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

bool AddOperation(
	TermModelOperation op,
	out int vidNew,
	int vid1,
	int vid2,
	int vid3
)

Parameters

op
Type: Microsoft.SolverFoundation.Services.TermModelOperation
The operation to add to the model.
vidNew
Type: System.Int32%
The index of the new row, or the index of an existing row that has the same value as the new row.
vid1
Type: System.Int32
The first input argument for the operation.
vid2
Type: System.Int32
The second input argument for the operation.
vid3
Type: System.Int32
The third input argument for the operation.

Return Value

Type: System.Boolean
true if a new row is added; false if an existing row is re-used.

If is an example of a three-operand operation.

Show:
© 2014 Microsoft