MCPcopy Create free account
hub / github.com/avaneev/biteopt / penalty0

Method penalty0

constr2.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 double penalty0( double v )
44 {
45 v = fabs( v );
46
47 if( v > tol )
48 {
49 con_notmet++;
50 return( v - tol );
51 }
52
53 return( 0.0 );
54 }
55
56 virtual double optcost( const double* const p )
57 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected