Text this: Optimal flexible solutions of capacity benefit margin considering interconnected system reliability