Economics-based optimization of unstable flows