Optimal design of adaptable structures as a method of establishing their limit state