validate {optiSolve}R Documentation

Validate a Solution

Description

Validate a solution of an optimization problem.

Usage

validate(op, sol, quiet=FALSE, tol=0.0001)

Arguments

op

The constrained optimization problem defined with function cop.

sol

The solution of the optimization problem obtained with function solvecop.

quiet

Logical variable indicating whether output to console should be switched off.

tol

The tolerance. A constraint is considered fulfilled even if the value exceeds (falls below) the thresshold value by tol.

Details

Validate a solution of an optimization problem by checking if the constraints are fulfilled.

Values and bounds of the constraints are printed.

Value

A list of class copValidation with components:

summary

Data frame containing one row for each constraint with the value of the constraint in column Val, the bound for the constraint in column Bound, and column OK states if the constraint is fulfilled. The value of the objective function is shown in the first row. Additional rows contain the values of disabled constraints.

info

Data frame with component valid indicating if all constraints are fulfilled, component solver containing the name of the solver used for optimization, and component status describing the solution as reported by the solver.

var

Data frame with the values of the objective function and constraints at the optimum.

obj.fun

Named numeric value with value and name of the objective function at the optimum.

Author(s)

Robin Wellmann

See Also

The main function for solving constrained programming problems is solvecop.


[Package optiSolve version 1.0 Index]