Line diagram of optimization programs