[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a row as a goal. Unconstrained models can have just one row. By convention this row will always have 0 as an index.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
public virtual IGoal AddRowAsGoal( Object key, int pri, bool minimize, out int vid )
- Type: System.Object
a key for the row
- Type: System.Int32
the priority of a goal
- Type: System.Boolean
whether to minimize the goal row
- Type: System.Int32%
a row variable index of the goal row if successful, or -1 if not
Return ValueType: Microsoft.SolverFoundation.Services.IGoal
the new goal if added successfully, otherwise null
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.