Hello, does ampl have requirements for the version of matlab? Why is there an error indicating that the .run file cannot be opened
The first diagram is the error diagram, the second is the location of the code and the main program, and the third is the.run file
Look at the file-path bar at the top of the MATLAB window:
That tells you the current file folder. (In this example, it’s C:\Users\Robert\Desktop\Solvers\MODELS.) When you give a command like
!ampl rr0.run
then AMPL looks for the file rr0.run in the current folder. A message like
can't open rr0.run
most likely indicates that the file can’t be found, because it is not in the current folder. To fix this, use the “Current Folder” display (at the left in the above screenshot) to change the current folder to be the one that contains rr0.run.