Optimal development with flow-based production