• This function the best known primal and dual bounds from raw solu data.

    Parameters

    • unprocessedSolutionData: string[]

      Array of strings, each representing a line from a solu data file.

    Returns object[]

    Array of objects, each representing a processed line of data with associated primal and/or dual bounds.

    Remarks

    It processes an array of strings that represent raw solu data. Each string is parsed using a regular expression pattern to extract the best known primal and dual bounds, as well as the file name.

    The function then generates an object for each line of data, with the file name and the primal and/or dual bounds as properties of the object, depending on the keyword in the first column. The keyword "inf" indicates infinity, "best" a primal bound, "bestdual" a dual bound, and "opt" indicates that the bound is both primal and dual.

    Example

    const unprocessedSolutionData = [ "=best= FileName1 100", "=bestdual= FileName2 200", "=opt= FileName3 300" ];
    const result = GetBestKnownBounds(unprocessedSolutionData);
    // result = [
    // { "InputFileName": "FileName1", "PrimalBound Problem": 100 },
    // { "InputFileName": "FileName2", "DualBound Problem": 200 },
    // { "InputFileName": "FileName3", "PrimalBound Problem": 300, "DualBound Problem": 300 }
    // ];

Generated using TypeDoc