abstract: We study the optimization of the positive principal eigenvalue of a weighted problem associated with the Neumann spectral fractional laplacian. This analysis is related to the optimization of the survival threshold in population dynamic. Our main result concerns the optimization with respect to the fractional exponent. This is relatied to the best choice in the dynamic in dependence of the habitat. Our results are also related to the analogous study in periodic environments.