Lagrangian functioned

adj.

Drunk on the strength of two changing circumstances, and proceeding according to their difference.

Arbrielle spent the evening adjusting her route whenever the circumstances changed, Lagrangian functioned.

Source: Wiktionary