Error using 'ampl_include'

4 views
Skip to first unread message

WALTON PEREIRA COUTINHO

unread,
Apr 5, 2024, 9:31:02 PMApr 5
to AMPL Modeling Language
Dear all.

I can't seem to be able to use the ampl_include command properly, even after digging through this forum.

 My current directory structure has an "Inst_Data" folder which contains "reg_value_1.dat"
and a "Solution" folder containing other files.

The following code:

option ampl_include '.\
Inst_Data\
Solution';

param temp;
read temp < reg_value_1.dat;
print temp;


Produces the error below:

ampl .\jamming_traj.run
Error at _cmdno 6 executing "read" command
(file .\jamming_traj.run, line 41, offset 1190):

        can't open input file "reg_value_1.dat"


Not sure what is going on ...

Thank you in advance for any help!

Best,
Walton.
Reply all
Reply to author
Forward
0 new messages