@@ -30,7 +30,7 @@ using std::map;
3030// Read file called filename. Returns 0 if OK and 1 if file can't be opened
3131//
3232FilereaderRetcode readMps (
33- const HighsLogOptions& log_options, const std::string filename,
33+ const HighsLogOptions& log_options, const std::string& filename,
3434 HighsInt mxNumRow, HighsInt mxNumCol, HighsInt& numRow, HighsInt& numCol,
3535 ObjSense& objSense, double & objOffset, vector<HighsInt>& Astart,
3636 vector<HighsInt>& Aindex, vector<double >& Avalue, vector<double >& colCost,
@@ -549,8 +549,8 @@ bool load_mpsLine(std::istream& file, HighsVarType& integerVar, HighsInt lmax,
549549}
550550
551551HighsStatus writeModelAsMps (const HighsOptions& options,
552- const std::string filename, const HighsModel& model ,
553- const bool free_format) {
552+ const std::string& filename ,
553+ const HighsModel& model, const bool free_format) {
554554 bool warning_found = false ;
555555 const HighsLp& lp = model.lp_ ;
556556
@@ -593,16 +593,16 @@ HighsStatus writeModelAsMps(const HighsOptions& options,
593593}
594594
595595HighsStatus writeMps (
596- const HighsLogOptions& log_options, const std::string filename,
597- const std::string model_name, const HighsInt& num_row,
596+ const HighsLogOptions& log_options, const std::string& filename,
597+ const std::string& model_name, const HighsInt& num_row,
598598 const HighsInt& num_col, const HighsInt& q_dim, const ObjSense& sense,
599599 const double & offset, const vector<double >& col_cost,
600600 const vector<double >& col_lower, const vector<double >& col_upper,
601601 const vector<double >& row_lower, const vector<double >& row_upper,
602602 const vector<HighsInt>& a_start, const vector<HighsInt>& a_index,
603603 const vector<double >& a_value, const vector<HighsInt>& q_start,
604604 const vector<HighsInt>& q_index, const vector<double >& q_value,
605- const vector<HighsVarType>& integrality, const std::string objective_name,
605+ const vector<HighsVarType>& integrality, const std::string& objective_name,
606606 const vector<std::string>& col_names, const vector<std::string>& row_names,
607607 const bool use_free_format) {
608608 HighsInt num_no_cost_zero_columns = 0 ;
0 commit comments