60 cplex.GetStatus().ToString(),
63 "CPLEX loaded correctly but did not return a " +
64 "solution for the smoke-test model.");
70 double objectiveValue =
73 bool expectedSolution =
74 Math.Abs(xValue - 1.0) <= 1e-7 &&
75 Math.Abs(objectiveValue - 1.0) <= 1e-7;
80 cplex.GetStatus().ToString(),
84 ?
"CPLEX native smoke test succeeded."
85 :
"CPLEX solved the model but returned an " +
86 "unexpected result.");
88 catch (System.Exception exception)
92 cplex?.Version ??
string.Empty,
96 exception.ToString());