Skip to content

Commit e729efa

Browse files
committed
fix solve
1 parent 9c35652 commit e729efa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rampl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void RAMPL::solve(Rcpp::Nullable<std::string> problem = R_NilValue, Rcpp::Nullab
326326
else if (solver.isNotNull())
327327
_impl.solve("", solver);
328328
else
329-
_impl.solve("", "")
329+
_impl.solve("", "");
330330

331331

332332
//return _impl.solve("", ""); // FIXME: does not print to stdout with R IDE on Windows

src/rampl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class RAMPL {
104104
void reset();
105105
void close();
106106
bool isRunning() const;
107-
void solve(std::string problem="", std::string solver="");
107+
void solve(Rcpp::Nullable<std::string> problem = R_NilValue, Rcpp::Nullable<std::string> solver = R_NilValue);
108108

109109
Rcpp::DataFrame getData(Rcpp::List statements) const;
110110
SEXP getValue(std::string scalarExpression) const;

0 commit comments

Comments
 (0)