Learn R Programming

optiSolve (version 1.0)

adjust: Adjust Constraints and Objective Functions

Description

Constraints and objective functions are adjusted so that they refer to a larger or smaller set of variables.

Usage

adjust(x, ids)

Arguments

x

Constraint or objective function of class "linFun", "linCon", "quadFun", "quadCon", "ratioFun", and "ratioCon".

ids

Vector with ids of the variables.

Value

A data frame (invisible) containing values and bounds of the constraints, the value of the objective function, and column valid which is TRUE if all constraints are fulfilled.

Details

Constraints and objective functions are adjusted so that they refer to a larger or smaller set of variables. Additional variables do not affect the value of the constraint or objective function.

See Also

The main function for solving constrained programming problems is solvecop.