Robust and Optimal Control:A Two-port Framework Approach