Machine Learning and Optimization Techniques for Trapped-ion Quantum Simulators