One-dimensional global optimization problems with multiextremal constraints