Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
INonlinearModel.SetActiveVariable Method

UnconstrainedNonlinearModel.INonlinearModel.SetActiveVariable Method

Solver Foundation 3.0

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

Sets a specific variable in a row to be active or inactive

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

void INonlinearModel.SetActiveVariable(
	int rowVid,
	int varVid,
	bool active
)

Parameters

rowVid
Type: System.Int32
the row index
varVid
Type: System.Int32
the variable index
active
Type: System.Boolean
if true, the variable becomes active, if false it becomes inactive

Implements

INonlinearModel.SetActiveVariable(Int32, Int32, Boolean)

ExceptionCondition
ArgumentException

rowVid is not a legal row index, or varVid is not a legal variable index

ArgumentException

rowVid is not a legal row index

NotSupportedException

Not supported by unconstrained solvers

Not supported by unconstrained solvers

Show:
© 2015 Microsoft