Skip to content

Instantly share code, notes, and snippets.

@fmder
Created April 9, 2014 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmder/10287805 to your computer and use it in GitHub Desktop.
Save fmder/10287805 to your computer and use it in GitHub Desktop.
MOCMA.h modification
if(!function.isFeasible(m_pop[mu()+i].searchPoint())){
RealVector t(m_pop[mu()+i].searchPoint());
function.closestFeasible( t );
double dist = norm_sqr( t - m_pop[mu()+i].searchPoint() );
std::cout << dist << std::endl;
m_invalidCount++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment