# \[AMPL 24573\] Gurobi options: problem with outlev option for AMPL

**URL:** <https://discuss.ampl.com/t/ampl-24573-gurobi-options-problem-with-outlev-option-for-ampl/438>\
**Category:** Google Group Mirror\
**Created:** [March 13, 2023, 9:09pm UTC](https://discuss.ampl.com/t/ampl-24573-gurobi-options-problem-with-outlev-option-for-ampl/438 "2023-03-13T21:09:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yelky\_Alberto\_Castro](https://avatars.discourse-cdn.com/v4/letter/y/ed8c4c/32.png) [@Yelky\_Alberto\_Castro](https://discuss.ampl.com/u/Yelky_Alberto_Castro)\
**Post date:** [March 13, 2023, 9:09pm UTC](https://discuss.ampl.com/t/ampl-24573-gurobi-options-problem-with-outlev-option-for-ampl/438/1 "2023-03-13T21:09:31Z")

</div>

I am trying to use the “outlev=1” option and save all the generated information in a log file. But in the end I can’t generate that information. I am going to attach the 3 files corresponding to the model, data set and the instruction file (.run).

[TSOP.mod](https://discuss.ampl.com/uploads/short-url/o917jv9dQf5OYv0YXJnN9kmUfI1.mod) (7.71 KB)

[GPFS1.dat](https://discuss.ampl.com/uploads/short-url/vy9wzPMzUe3mB3apAh3dLZzS8xA.dat) (2.6 KB)

[TSOP.run](https://discuss.ampl.com/uploads/short-url/3pOW7GUPU18keC3dDLXDnwTLLQ7.run) (1.17 KB)

---

<div class="post-metadata">

**Author:** ![AMPL\_Google\_Group](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@AMPL\_Google\_Group](https://discuss.ampl.com/u/AMPL_Google_Group)\
**Post date:** [March 14, 2023, 5:16pm UTC](https://discuss.ampl.com/t/ampl-24573-gurobi-options-problem-with-outlev-option-for-ampl/438/2 "2023-03-14T17:16:44Z")

</div>

I ran the command “ampl TSOP.run” and got the attached log file. Also I tried “include TSOP.run;” at the AMPL command prompt, and got the same result, except that I had to press the “enter” key one more time at the end, to get all of the output to appear.

The log file _does_ need to be left open until the AMPL session completes. Executing “close ‘log\_timetable20230313 19.09.04.log’;” causes a new, empty log file to be started in place of the one that was written.

Are you rnning TSOP.run differently from how I describe? And can you attach the log file that you are seeing?

(Attachment log\_timetable20230313 19.09.04.log is missing)
