I'm trying to use AMPL() in MATLAB

I have a problem with AMPL API in MATLAB, this is the error ''Error in AMPL (line 111)
a = com.ampl.AMPL(); ‘’
I add the directory path of AMPL and also the javapat with the file ampl-java.jar ,but i have still the error. What can i do ?

Hi @annag,

Thank you for reaching out. What happens when you run setupOnce Initial Setup — AMPL API 2.1.4 documentation?