I am getting “RuntimeError: cannot write to file: Broken pipe” error in colab. The same mod and dat file give me a solution in AMPLIDE. The full error is given below.
RuntimeError Traceback (most recent call last) in <cell line: 1>() ----> 1 get_ipython().run_cell_magic(‘ampl_eval’, ‘’, ‘\nreset;\n\n# Model File\n\nmodel HerV2.mod;\ndata HerV2.dat;\n\n# Calling Optimization Engine and solving the problem\n\noption solver cplex;\n\nsolve;\n\n# Display Results\n\ndisplay Z, q; \n’)