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

Method penalty

constr2.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 double penalty( const double v )
33 {
34 if( v > tol )
35 {
36 con_notmet++;
37 return( v - tol );
38 }
39
40 return( 0.0 );
41 }
42
43 double penalty0( double v )
44 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected