On salesmen and tourists: two-step optimization in deterministic foragers Maya Miguel, Miramontes Octavio, Boyer Denis