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

Method penalty

constr.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 double penalty( double v )
60 {
61 if( v > tol )
62 {
63 con_notmet++;
64 return( v - tol );
65 }
66
67 return( 0.0 );
68 }
69
70 virtual double optcost( const double* const p )
71 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected