Modified synthetic_data function to use solver object