Behavior and Communication Co-Optimization for Systems with Sequential Communication Media