Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement name reader #53

Closed
vitaut opened this issue Apr 27, 2015 · 0 comments
Closed

Implement name reader #53

vitaut opened this issue Apr 27, 2015 · 0 comments

Comments

@vitaut
Copy link
Contributor

vitaut commented Apr 27, 2015

Some solvers or solver-like programs such as smpswriter require access to variable and constraint names. The name reader should be separate from NLReader for users to be able to provide names and NL input from different sources. Possible API:

class NameHandler {
 public:
  void OnVarName(fmt::StringRef name);
  void OnConName(fmt::StringRef name);
};

template <typename NameHandler>
void ReadNameFiles(fmt::StringRef row_filename, fmt::StringRef col_filename,
                   NameHandler &handler);
vitaut added a commit that referenced this issue Apr 30, 2015
@vitaut vitaut closed this as completed May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant