19using System.Collections;
20using System.Collections.Generic;
22using System.Runtime.CompilerServices;
23using Google.Protobuf.Collections;
30 class SolverException : Exception
32 public SolverException(String methodName, String msg) : base(methodName +
": " + msg)
44 this.logCallback_ =
null;
54 if (logCallback_ ==
null)
136 throw new SolverException(
"Solver.ObjectiveValue",
"Solve() was not called or no solution was found");
151 throw new SolverException(
"Solver.BestObjectiveBound",
152 "Solve() was not called or no solution was found");
166 throw new SolverException(
"Solver.Value())",
"Solve() was not called or no solution was found");
178 throw new SolverException(
"Solver.ReducedCost())",
"Solve() was not called or no solution was found");
191 throw new SolverException(
"Solver.DualValue())",
"Solve() was not called or no solution was found");
204 throw new SolverException(
"Solver.Activity())",
"Solve() was not called or no solution was found");
218 logCallback_ = value;