2using System.Collections.Generic;
19 private static readonly IReadOnlyList<
26 public static IReadOnlyList<
45 public static IReadOnlyList<
53 throw new ArgumentOutOfRangeException(
56 "A concrete solver kind is required.");
62 definition.SolverKind ==
69 definition.VariableName,
70 StringComparer.OrdinalIgnoreCase)
90 if (
string.IsNullOrWhiteSpace(
93 throw new ArgumentException(
94 "An environment-variable name is required.",
95 nameof(variableName));
98 return Definitions.FirstOrDefault(
101 definition.VariableName,
103 StringComparison.OrdinalIgnoreCase));
106 private static IReadOnlyList<
115 "IBM ILOG CPLEX Optimization Studio " +
116 "installation directory.")
122 new SolverEnvironmentVariableDefinition(
125 "Gurobi Optimizer installation directory.")
131 new SolverEnvironmentVariableDefinition(
134 "Gurobi license file or license-server " +
144 new SolverEnvironmentVariableDefinition(
147 "FICO Xpress installation directory.")
153 new SolverEnvironmentVariableDefinition(
156 "FICO Xpress authorization or license path.")
Provides the default catalog of solver-specific environment variables inspected during solver discove...
static ? SolverEnvironmentVariableDefinition Find(string variableName)
Gets a definition by environment-variable name.
static IReadOnlyList< SolverEnvironmentVariableDefinition > ForSolver(SolverKind solverKind)
Gets the default environment-variable definitions associated with a solver.
static IReadOnlyList< SolverEnvironmentVariableDefinition > All
Gets all default environment-variable definitions.
Describes a solver-specific environment variable that may identify an installation directory,...
SolverKind
Identifies a supported mathematical optimization solver.