src/Kingdom.OrTools.LinearSolver.Core/OrLinearProblemSolverBase.cs
// TODO: TBD: taking LinearSolver assembly(ies) out of the build configuration for the time being until a usage/migration path can be established...
/// <summary>
/// Builds the <see cref="MPSolverParameters"/> instance given a set of
/// <see cref="MpParamSpec"/> pairs.
/// </summary>
/// <param name="specs"></param>
/// <returns></returns>
Builds the  instance given a set of
pairs.
Builds the instance given a set of pairs .
protected virtual MPSolverParameters BuildParameters(params MpParamSpec[] specs)
        {
            var parameters = new MPSolverParameters();
            foreach (var (spec, value) in specs)
            {
                parameters.SetDoubleParam(spec.ForSolver(), value);
            }
            ClrCreatedObjects.Add(parameters);
            return parameters;
        }
protected virtual MPSolverParameters BuildParameters ( params MpParamSpec [ ] specs ) { var parameters = new MPSolverParameters ( ) ; foreach ( var ( spec , value ) in specs ) { parameters . SetDoubleParam ( spec . ForSolver ( ) , value ) ; } ClrCreatedObjects . Add ( parameters ) ; return parameters ; }
Builds the  instance given a set of
pairs.
Builds the instance given a set of pairs .
None
specs
None