Structure optimization and adjustment