RTOpPack: Extra C/C++ Code for Vector Reduction/Transformation Operators  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RTOp_ROp_combined_nu_comp_err.h File Reference
#include "RTOp.h"
#include "RTOp_obj_value_vtbl.h"
Include dependency graph for RTOp_ROp_combined_nu_comp_err.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

const struct RTOp_RTOp_vtbl_t RTOp_ROp_combined_nu_comp_err_one_only_vtbl
 

Detailed Description

 element-wise reduction      : comp_err = max(comp_err, v0(i)*(v3(i)-v1(i), -v0(i)*(v1(i)-v2(i))));

This operator class implementation was created automatically by 'new_rtop.pl'.

This operator calculates an estimate of the complementarity error using a combined nu for the upper and lower bound inequality constraints. At the soln, a positive nu indicates the upper bound is active, while a negative nu indicates the lower bound is active. If nu is zero, then neither bound is active.

      for every i..
       comp_err = max(comp_err, v(i)*(xu(i)-x(i), -v(i)*(x(i)-xl(i))));

Definition in file RTOp_ROp_combined_nu_comp_err.h.

Variable Documentation

const struct RTOp_RTOp_vtbl_t RTOp_ROp_combined_nu_comp_err_one_only_vtbl
element-wise reduction      : comp_err = max(comp_err, v0(i)*(v1(i)-v2(i)));

This operator class implementation was created automatically by 'new_rtop.pl'.

This operator calculates the comp_err for a single bound vector (upper or lower) - it is to be used when either one of the bounds vectors are all infinite (-/+)

Definition at line 251 of file RTOp_ROp_combined_nu_comp_err.c.