Detection and Transformation of Objective and Constraint Structures for Optimization Algorithms