Text this: Modeling of localization using Nash variational formulations