Buggy code:
public abstract class DirectSearchOptimizer { protected DirectSearchOptimizer ( ) { } public PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker , double [ ] vertexA , double [ ] vertexB ) throws ConvergenceException , CostException { } public PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker , double [ ] vertexA , double [ ] vertexB , int starts , long seed ) throws ConvergenceException , CostException { } public PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker , double [ ] [ ] vertices ) throws ConvergenceException , CostException { } public PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker , double [ ] [ ] vertices , int starts , long seed ) throws ConvergenceException , CostException , NotPositiveDefiniteMatrixException { try { buildSimplex ( vertices ) ; VectorialMean meanStat = new VectorialMean ( vertices [ 0 ] . length ) ; VectorialCovariance covStat = new VectorialCovariance ( vertices [ 0 ] . length , true ) ; for ( int i = 0 ; i < ( vertices . length ) ; ++ i ) { meanStat . increment ( vertices [ i ] ) ; covStat . increment ( vertices [ i ] ) ; } double [ ] mean = meanStat . getResult ( ) ; RealMatrix covariance = covStat . getResult ( ) ; RandomGenerator rg = new JDKRandomGenerator ( ) ; rg . setSeed ( seed ) ; RandomVectorGenerator rvg = new org . apache . commons . math . random . CorrelatedRandomVectorGenerator ( mean , covariance , ( 1.0E-12 * ( covariance . getNorm ( ) ) ) , new org . apache . commons . math . random . UniformRandomGenerator ( rg ) ) ; setMultiStart ( starts , rvg ) ; return minimize ( f , maxEvaluations , checker ) ; } catch ( DimensionMismatchException dme ) { <START_BUG> throw new org . apache . commons . math . MathRuntimeException ( "unexpected<seq2seq4repair_space>exception<seq2seq4repair_space>caught" , new Object [ 0 ] , dme ) ; <END_BUG> } } public PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker , RandomVectorGenerator generator ) throws ConvergenceException , CostException { } public PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker , RandomVectorGenerator generator , int starts ) throws ConvergenceException , CostException { } private void buildSimplex ( double [ ] vertexA , double [ ] vertexB ) { } private void buildSimplex ( double [ ] [ ] vertices ) { } private void buildSimplex ( RandomVectorGenerator generator ) { } private void setSingleStart ( ) { } private void setMultiStart ( int starts , RandomVectorGenerator generator ) { } public PointCostPair [ ] getMinima ( ) { } private PointCostPair minimize ( CostFunction f , int maxEvaluations , ConvergenceChecker checker ) throws ConvergenceException , CostException { } protected abstract void iterateSimplex ( ) throws CostException { } protected double evaluateCost ( double [ ] x ) throws CostException { } protected void evaluateSimplex ( ) throws CostException { } protected void replaceWorstPoint ( PointCostPair pointCostPair ) { } private static Comparator < PointCostPair > pointCostPairComparator = new Comparator < PointCostPair > ( ) { public int compare ( PointCostPair o1 , PointCostPair o2 ) { } } ; protected PointCostPair [ ] simplex ; private CostFunction f ; private int evaluations ; private int starts ; private RandomVectorGenerator generator ; private PointCostPair [ ] minima ; }

Fix:
throw new org . apache . commons . math . MathRuntimeException ( "unexpected<seq2seq4repair_space>exception<seq2seq4repair_space>caught" , null , dme ) ;