| 1990 | */ |
| 1991 | |
| 1992 | void updateBestCost( const double UpdCost, const double* const UpdValues, |
| 1993 | int p = -1 ) |
| 1994 | { |
| 1995 | if( p < 0 ) |
| 1996 | { |
| 1997 | if( UpdCost <= BestCost ) |
| 1998 | { |
| 1999 | p = 0; |
| 2000 | } |
| 2001 | } |
| 2002 | |
| 2003 | if( p == 0 ) |
| 2004 | { |
| 2005 | BestCost = UpdCost; |
| 2006 | |
| 2007 | copyValues( BestValues, UpdValues ); |
| 2008 | } |
| 2009 | } |
| 2010 | |
| 2011 | /** |
| 2012 | * Function checks the supplied cost value for NaN and returns a "fixed" |
nothing calls this directly
no outgoing calls
no test coverage detected