ScipParamsValidate Method
Validates the values of the scip parameters, and returns Ok if all values are valid.
Returns the error explaining values of which setting has an invalid value.
ScipParams pars = new();
Res validation = pars.Validate();
Assert.True(validation.IsOk); // all default values must be valid :)
ScipParams parsBad = new()
{
TimeLimit = -10 // not a valid time limit
};
Res validationBad = parsBad.Validate();
Assert.True(validationBad.IsErr);
Assert.True(validationBad.ErrorMessage().Unwrap().Contains("TimeLimit")); // error message describing the failing test
Namespace: Orx.MathProg.SolversAssembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
Return Value
Res