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

Method penalty

constr3.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 double penalty( const double v )
49 {
50 if( v > tol )
51 {
52 con_notmet++;
53 return( v - tol );
54 }
55
56 return( 0.0 );
57 }
58
59 virtual double optcost( const double* const p0 )
60 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected