Skip to content

Commit

Permalink
[doc] Provide an inventory of our environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri committed Mar 22, 2023
1 parent a641258 commit 06024d6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions doc/doxygen_cxx/doxygen.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,39 @@ namespace solvers {
@}
*/

/** @addtogroup technical_notes
@{
@defgroup environment_variables Environment Variables
This section provides an inventory of environment variables relevant to Drake.
- <b>\ref drake::common::FindResource() "DRAKE_RESOURCE_ROOT"</b>
- <b>\ref drake::solvers::GurobiSolver "GRB_LICENSE_FILE"</b> (see also
<a href="https://support.gurobi.com/hc/en-us/articles/360013417211-Where-do-I-place-the-Gurobi-license-file-gurobi-lic-">upstream documentation</a>)
- <b>\ref drake::solvers::GurobiSolver "GUROBI_NUM_THREADS"</b>
- <b>HOME</b>
- <b>\ref drake::solvers::MosekSolver "MOSEKLM_LICENSE_FILE"</b> (see also
<a href="https://docs.mosek.com/latest/licensing/client-setup.html">upstream documentation</a>)
- <b>OMP_NUM_THREADS</b> (see
<a href="https://www.openmp.org/spec-html/5.0/openmpse50.html">upstream documentation</a>)
- <b>\ref drake::multibody::PackageMap::PopulateFromRosPackagePath() "ROS_PACKAGE_PATH"</b> (see also
<a href="http://wiki.ros.org/ROS/EnvironmentVariables">upstream documentation)</a>
- <b>RUNFILES_DIR</b> (see
<a href="https://github.com/bazelbuild/bazel/blob/6.1.1/tools/python/runfiles/runfiles.py#L77">upstream documentation)</a>
- <b>RUNFILES_MANIFEST_FILE</b> (see
<a href="https://github.com/bazelbuild/bazel/blob/6.1.1/tools/python/runfiles/runfiles.py#L77">upstream documentation)</a>
- <b>TEST_SRCDIR</b> (see
<a href="https://bazel.build/reference/test-encyclopedia#initial-conditions">upstream documentation</a>)
- <b>\ref drake::temp_directory() "TEST_TMPDIR"</b> (see also
<a href="https://bazel.build/reference/test-encyclopedia#initial-conditions">upstream documentation</a>)
- <b>\ref drake::temp_directory() "TMPDIR"</b>
- <b>USER</b>
- <b>XDG_CACHE_HOME</b> (see
<a href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html">upstream documentation</a>)
@}
*/

} // namespace drake
4 changes: 4 additions & 0 deletions solvers/gurobi_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ struct GurobiSolverDetails {
/// for more details. Often this method is called together with
/// setting GRBwrite to "FILENAME.ilp" to write IIS to a file with extension
/// "ilp". Default is not to compute IIS.
///
/// If the "Threads" integer solver option has not been set by the user, then
/// %GurobiSolver uses environment variable GUROBI_NUM_THREADS (if set) as a
/// default value for "Threads".
class GurobiSolver final : public SolverBase {
public:
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN(GurobiSolver)
Expand Down

0 comments on commit 06024d6

Please sign in to comment.