Application of variational algorithms in semi- lagrangian framework