Skip to content

Commit

Permalink
fix solve
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Feb 14, 2025
1 parent 9c35652 commit e729efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rampl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void RAMPL::solve(Rcpp::Nullable<std::string> problem = R_NilValue, Rcpp::Nullab
else if (solver.isNotNull())
_impl.solve("", solver);
else
_impl.solve("", "")
_impl.solve("", "");


//return _impl.solve("", ""); // FIXME: does not print to stdout with R IDE on Windows
Expand Down
2 changes: 1 addition & 1 deletion src/rampl.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class RAMPL {
void reset();
void close();
bool isRunning() const;
void solve(std::string problem="", std::string solver="");
void solve(Rcpp::Nullable<std::string> problem = R_NilValue, Rcpp::Nullable<std::string> solver = R_NilValue);

Rcpp::DataFrame getData(Rcpp::List statements) const;
SEXP getValue(std::string scalarExpression) const;
Expand Down

0 comments on commit e729efa

Please sign in to comment.