# \[AMPL 25034\] ampl to output lp

**URL:** <https://discuss.ampl.com/t/ampl-25034-ampl-to-output-lp/1074>\
**Category:** Google Group Mirror\
**Created:** [April 27, 2024, 7:25pm UTC](https://discuss.ampl.com/t/ampl-25034-ampl-to-output-lp/1074 "2024-04-27T19:25:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)\
**Post date:** [April 28, 2024, 7:01pm UTC](https://discuss.ampl.com/t/ampl-25034-ampl-to-output-lp/1074/2 "2024-04-28T19:01:19Z")

</div>

To see a listing of the objective and of each constraint that AMPL generated, you can use the command

```auto
expand;

```

If the listing is very long, you can redirect it to a file. For example, to redirect it to the file `model.out`, use the command

```auto
expand >model.out;

```

To get help with output in a different format, give an example of the kind of LP listing that you would like to see.

---

_[View the full topic](https://discuss.ampl.com/t/ampl-25034-ampl-to-output-lp/1074)._
