We study a new approach to the problem of transparent boundary conditions for
the Helmholtz equation in unbounded domains. Our approach is based on the
minimization of an integral functional arising from a volume integral
formulation of the radiation condition. The index of refraction does not need
to be constant at infinity and may have some angular dependency as well as
perturbations. We prove analytical results on the convergence of the
approximate solution. Numerical examples for different shapes of the artificial
boundary and for non-constant indexes of refraction will be presented