Optimization in Sample surveys and System Reliability