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 |
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 |
info |
Data frame with component |
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.