Initializing help system before first use

# xprs_newrow

Purpose
Create and add a new row to a problem.
This function is similar to xprs_addrow but instead of returning the prob object, it returns the index of the newly created row.
Synopsis
`xprs_newrow(prob, colind, rowcoef, rowtype, rhs, name = NULL, rng = NULL)`
Arguments

prob | The problem to which the row is to be added.
colind | The variable indices for the variables in the new row.
rowcoef | The coefficients for the variables in the new row.
rowtype | Character specifying the type of the new row. Possible values are: L indicates a <= row. G indicates >= row. E indicates an = row. R indicates a range constraint. N indicates a nonbinding constraint.
rhs | The right-hand side of the new row.
name | The name of the new row.
rng | The range value for the new row.

Return value
The index of the newly created row.
Further information
This is a variant of addrows() that only adds a single row and also allows specifying the name of the row.
Parent Topic R interface reference manual

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.