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(); }
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(); }