adjust {optiSolve}R Documentation

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.

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.

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.

See Also

The main function for solving constrained programming problems is solvecop.


[Package optiSolve version 1.0 Index]