Optimization of modeling pile foundations