OP(objective, constraints, types, bounds, maximum =FALSE)as.OP(x)
Arguments
objective: an object inheriting from class "objective".
constraints: an object inheriting from class "constraints".
types: a character vector giving the types of the objective variables, with "C", "I", and "B"
corresponding to continuous, integer, and binary, respectively, or NULL (default), taken as all-continuous. Recycled as needed.
bounds: NULL (default) or a list with elements upper and lower containing the indices and corresponding bounds of the objective variables. The default for each variable is a bound between 0 and Inf.
maximum: a logical giving the direction of the optimization. TRUE means that the objective is to maximize the objective function, FALSE (default) means to minimize it.