Machine Learning Assisted Optimization for Calculation and Automated Tuning of Antennas