Deterministic Flexibility Analysis (Theory, Design, and Applications)