Beispiel #1
0
        public MPSLPReader(string path, MPSLPReaderConfig config = null)
        {
            if (string.IsNullOrEmpty(path))
            throw new ArgumentNullException("path");

              if (!File.Exists(path))
            throw new IOException("Arquivo nao existe.");

              _path = path;
              _mpsFile = new StreamReader(path, Encoding.UTF8);
              _funcao = new FObjetivo();

              _config = config ?? new MPSLPReaderConfig();
        }
Beispiel #2
0
        public MPSLPReader(string path, MPSLPReaderConfig config = null)
        {
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException("path");
            }

            if (!File.Exists(path))
            {
                throw new IOException("Arquivo nao existe.");
            }

            _path    = path;
            _mpsFile = new StreamReader(path, Encoding.UTF8);
            _funcao  = new FObjetivo();

            _config = config ?? new MPSLPReaderConfig();
        }