Skip to content

Commit

Permalink
Suppress ipopt output
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulero committed Dec 14, 2023
1 parent eb722cd commit 67d0cd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/mpc-ik.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/ami-iit/ADAM/blob/ik-example/examples/mpc-ik.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
"<a href=\"https://colab.research.google.com/github/ami-iit/ADAM/blob/main/examples/mpc-ik.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
Expand Down Expand Up @@ -232,7 +232,7 @@
"opti.minimize(target_cost + velocities_cost)\n",
"\n",
"# set the solver\n",
"p_opts = {\"expand\": True}\n",
"p_opts = {\"expand\": True, 'ipopt.print_level': 0, 'print_time': 0, 'ipopt.sb': 'yes'}\n",
"s_opts = {\"max_iter\": 100, \"print_level\": 0}\n",
"opti.solver(\"ipopt\", p_opts, s_opts)\n"
]
Expand Down Expand Up @@ -260,6 +260,8 @@
},
"outputs": [],
"source": [
"print(\"Simulation in progress. Wait a bit!\")\n",
"\n",
"# start mujoco simulation along with control\n",
"duration = 10 # (seconds)\n",
"framerate = 60 # (Hz)\n",
Expand Down

0 comments on commit 67d0cd1

Please sign in to comment.