You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ortools/linear_solver/csharp/ModelSolver.cs
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,8 @@ public bool HasSolution()
125
125
}
126
126
127
127
/// <summary>
128
-
/// The best objective value found during search. This raises a ModelSolverException is no solution has been found, or if Solve() has not been called.
128
+
/// The best objective value found during search. This raises a ModelSolverException is no solution has been found,
129
+
/// or if Solve() has not been called.
129
130
/// </summary>
130
131
publicdoubleObjectiveValue
131
132
{
@@ -140,7 +141,8 @@ public double ObjectiveValue
140
141
}
141
142
142
143
/// <summary>
143
-
/// The best objective bound found during search. This raises a ModelSolverException is no solution has been found, or if Solve() has not been called.
144
+
/// The best objective bound found during search. This raises a ModelSolverException is no solution has been found,
145
+
/// or if Solve() has not been called.
144
146
/// </summary>
145
147
publicdoubleBestObjectiveBound
146
148
{
@@ -155,19 +157,20 @@ public double BestObjectiveBound
155
157
}
156
158
157
159
/// <summary>
158
-
/// The value of a variable in the current solution. This raises a ModelSolverException is no solution has been found, or if Solve() has not been called.
160
+
/// The value of a variable in the current solution. This raises a ModelSolverException is no solution has been
"Solve() was not called or no solution was found");
167
+
thrownewModelSolverException("ModelSolver.Value())","Solve() was not called or no solution was found");
166
168
}
167
169
returnhelper_.VariableValue(var.Index);
168
170
}
169
171
/// <summary>
170
-
/// The reduced cost of a variable in the current solution. This raises a ModelSolverException is no solution has been found, or if Solve() has not been called.
172
+
/// The reduced cost of a variable in the current solution. This raises a ModelSolverException is no solution has
173
+
/// been found, or if Solve() has not been called.
171
174
/// </summary>
172
175
publicdoubleReducedCost(Variablevar)
173
176
{
@@ -180,7 +183,8 @@ public double ReducedCost(Variable var)
180
183
}
181
184
182
185
/// <summary>
183
-
/// The dual value of a linear constraint in the current solution. This raises a ModelSolverException is no solution has been found, or if Solve() has not been called.
186
+
/// The dual value of a linear constraint in the current solution. This raises a ModelSolverException is no solution
187
+
/// has been found, or if Solve() has not been called.
184
188
/// </summary>
185
189
publicdoubleDualValue(LinearConstraintct)
186
190
{
@@ -193,7 +197,8 @@ public double DualValue(LinearConstraint ct)
193
197
}
194
198
195
199
/// <summary>
196
-
/// The activity of a constraint in the current solution. This raises a ModelSolverException is no solution has been found, or if Solve() has not been called.
200
+
/// The activity of a constraint in the current solution. This raises a ModelSolverException is no solution has been
0 commit comments