# Tolx and tolf options with lmmcp in perfect foresight simulations

**URL:** <https://forum.dynare.org/t/tolx-and-tolf-options-with-lmmcp-in-perfect-foresight-simulations/25850>\
**Category:** Perfect foresight simulations\
**Created:** [31 May 2024 15:07 UTC](https://forum.dynare.org/t/tolx-and-tolf-options-with-lmmcp-in-perfect-foresight-simulations/25850 "2024-05-31T15:07:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jahtu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@jahtu](https://forum.dynare.org/u/jahtu)\
**Post date:** [31 May 2024 15:07 UTC](https://forum.dynare.org/t/tolx-and-tolf-options-with-lmmcp-in-perfect-foresight-simulations/25850/1 "2024-05-31T15:07:18Z")

</div>

Hi.

I have a question about using the lmmcp solver for a perfect foresight simulation.

Do options tolx and tolf work when using lmmcp? Related to that, which options can one modify when using the lmmcp solver?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [3 June 2024 09:23 UTC](https://forum.dynare.org/t/tolx-and-tolf-options-with-lmmcp-in-perfect-foresight-simulations/25850/2 "2024-06-03T09:23:48Z")

</div>

At the current stage, Dynare does not feature an interface to any of the `lmmcp` options. `tolx` and `tolf` are not supported. If you want to alter the options. You need to edit `lmmcp.m`.

---

<div class="post-metadata">

**Author:** ![jahtu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@jahtu](https://forum.dynare.org/u/jahtu)\
**Post date:** [11 June 2024 01:26 UTC](https://forum.dynare.org/t/tolx-and-tolf-options-with-lmmcp-in-perfect-foresight-simulations/25850/3 "2024-06-11T01:26:38Z")

</div>

Thank you very much for your reply.

I have a follow-up question. I have been checking the documentation and it does not specify whether lmmcp is also suitable for models without inequality conditions, although it seems to work for these kind of models too.

Is lmmcp also suitable for models without slackness conditions?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [11 June 2024 08:46 UTC](https://forum.dynare.org/t/tolx-and-tolf-options-with-lmmcp-in-perfect-foresight-simulations/25850/4 "2024-06-11T08:46:54Z")

</div>

It should work without the constraints but should be quite inefficient. There are better solvers for standard problems.
