Skip to contents

Add a single constraint to an existing LPproblem.

Usage

addSingleConstraint(lp, ...)

# S4 method for class 'LPproblem_glpk'
addSingleConstraint(lp, coeffs, lb, ub, type)

Arguments

lp

Object of class LPproblem

...

Additional parameters passed on to the specific method instance.

coeffs

Linear coefficients for variables

lb

Lower bound of constraint

ub

Upper bound of constraint

type

Constraint type