Skip to content

Commit 29c4446

Browse files
1 parent f84faed commit 29c4446

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

doxygen_cxx/classdrake_1_1solvers_1_1_osqp_solver.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@
170170
<div class="textblock"><p>A wrapper to call <a href="https://osqp.org/">OSQP</a> using Drake's <a class="el" href="classdrake_1_1solvers_1_1_mathematical_program.html" title="MathematicalProgram stores the decision variables, the constraints and costs of an optimization probl...">MathematicalProgram</a>. </p>
171171
<p>For details about OSQP's available options, refer to the <a href="https://osqp.org/docs/interfaces/solver_settings.html">OSQP manual</a>. Drake uses OSQP's default values for all options except following:</p><ul>
172172
<li>Drake defaults to <code>polish=true</code> (upstream default is <code>false</code>).</li>
173-
<li>Drake defaults to <code>adaptive_rho_interval=ADAPTIVE_RHO_FIXED</code> to make the output deterministic (upstream default is <code>0</code>, which uses non-deterministic timing measurements to establish the interval). N.B. Generally the interval should be an integer multiple of <code>check_termination</code>, so if you choose to override either option you should probably override both at once. </li>
173+
<li>Drake defaults to <code>adaptive_rho_interval=ADAPTIVE_RHO_FIXED</code> to make the output deterministic (upstream default is <code>0</code>, which uses non-deterministic timing measurements to establish the interval). N.B. Generally the interval should be an integer multiple of <code>check_termination</code>, so if you choose to override either option you should probably override both at once.</li>
174174
</ul>
175+
<p>At the end of <a class="el" href="classdrake_1_1solvers_1_1_solver_base.html#a00b55f8b4c1c4f19b45621a84deed66c" title="Like SolverInterface::Solve(), but the result is a return value instead of an output argument.">OsqpSolver::Solve()</a> function, we always return the value of the primal and dual variables inside the OSQP solver, regardless of the solver status (whether it is optimal, infeasible, unbounded, etc), except when the problem has an invalid input. Users should always check the solver status before interpreting the returned primal and dual variables. </p>
175176
</div>
176177
<p><code>#include &lt;drake/solvers/osqp_solver.h&gt;</code></p>
177178
<table class="memberdecls">

pydrake/pydrake.solvers.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7239,6 +7239,12 @@
72397239
Generally the interval should be an integer multiple of
72407240
<code class="docutils literal notranslate"><span class="pre">check_termination</span></code>, so if you choose to override either option you
72417241
should probably override both at once.</p>
7242+
<p>At the end of OsqpSolver::Solve() function, we always return the value
7243+
of the primal and dual variables inside the OSQP solver, regardless of
7244+
the solver status (whether it is optimal, infeasible, unbounded, etc),
7245+
except when the problem has an invalid input. Users should always
7246+
check the solver status before interpreting the returned primal and
7247+
dual variables.</p>
72427248
<dl class="py method">
72437249
<dt class="sig sig-object py" id="pydrake.solvers.OsqpSolver.__init__">
72447250
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#pydrake.solvers.OsqpSolver" title="pydrake.solvers.OsqpSolver"><span class="pre">pydrake.solvers.OsqpSolver</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pydrake.solvers.OsqpSolver.__init__" title="Permalink to this definition"></a></dt>

pydrake/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)