Cookie Settings

Try our new documentation site (beta).

Filter Content By
Version
Table of contents
Filter by Language
C API Details
C++ API Details
GRBModel +
Java API Details
GRBModel +
.NET API Details
GRBModel +
Python API Details
Model +
Attributes
Parameters
Parameter Descriptions +


GRBColumn.AddTerms()

Add new terms into a column.

void AddTerms ( double[] coeffs,
    GRBConstr[] constrs )
    Add a list of terms into a column. Note that the lengths of the two argument arrays must be equal.

    Arguments:

    coeffs: Coefficients for added constraints.

    constrs: Constraints to add to column.

void AddTerms ( double[] coeffs,
    GRBConstr[] constrs,
    int start,
    int len )
    Add new terms into a column. This signature allows you to use arrays to hold the coefficients and constraints that describe the terms in an array without being forced to add an term for each member in the array. The start and len arguments allow you to specify which terms to add.

    Arguments:

    coeffs: Coefficients for added constraints.

    constrs: Constraints to add to column.

    start: The first term in the list to add.

    len: The number of terms to add.