• This function reads data from multiple file inputs, returning the raw data, instance information data and solu data.

    Parameters

    • unprocessedData: string[]

      An array to store the raw data from .trc files.

    • unprocessedInstanceInformationData: string[]

      An array to store the raw data from .csv files.

    • unprocessedSolutionData: string[]

      An array to store the raw data from .solu files.

    Returns {
        UnprocessedData: string[];
        UnprocessedInstanceInformationData: string[];
        UnprocessedSolutionData: string[];
    }

    An object containing arrays of raw data, instance information data, and solu data.

    • UnprocessedData: string[]
    • UnprocessedInstanceInformationData: string[]
    • UnprocessedSolutionData: string[]

    Remarks

    This function reads multiple files selected by the user, like trace1.trc, trace2.trc and minlp.solu. It uses the FileReader API to read the content of each file. Depending on the file extension (.json, .trc, .csv, .solu), it splits the file's content into an array of lines and processes each line as required, storing the results in the relevant arrays (unprocessedData, unprocessedInstanceInformationData, unprocessedSolutionData). If the file extension is .json, the function stores the uploaded UserConfiguration in the localStorage.

Generated using TypeDoc