This work is a careful implementation of a genetic algorithm (GA) for pre-selection of wavelengths, combined with partial least squares regression (PLS) for modelling of near-infrared (NIR) data. We show that NIR spectro- metry can be used for concentration measurements when background noise has not been limited and no chemical properties of the substances are known. We use an alternative brute force approach working for any convergent GA. It works by generating many solutions, preferably by using different GA parameters, and then constructing the final solution by only including variables found in a majority of all solutions. The proposed method is based on three assumptions: existence of data, varying measurement noise and selection of data wavelengths that are more fruitful than noise.