Linearly constrained global optimization and stochastic differential equations