Constructing the minimization diagram of a two-parameter problem