Interface AmplModel

    • Method Detail

      • getModelAsStream

        List<org.apache.commons.lang3.tuple.Pair<String,​InputStream>> getModelAsStream()
        Returns:
        each pair contains the name, and the InputStream of every ampl file of the model (.run .dat .mod)
      • getAmplRunFiles

        List<String> getAmplRunFiles()
        Returns:
        the list of the files to run in Ampl (.run files)
      • getOutputFilePrefix

        String getOutputFilePrefix()
      • getVariant

        int getVariant()
        Returns:
        network variant to export for the Ampl solve
      • getNetworkDataPrefix

        String getNetworkDataPrefix()
      • checkModelConvergence

        boolean checkModelConvergence​(Map<String,​String> metrics)
        From the metrics read, tells if the model has converged or not.
        Parameters:
        metrics - output written by the ampl model
        Returns:
        true if the metrics indicates that the ampl converged.
        See Also:
        AmplParameters.getOutputParameters(boolean)