Variational approach to fractional boundary value problems with two control parameters