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

Fix #41 libpms API is missing some features available via command-line #42

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vasdommes
Copy link

This PR fixes #41 by adding the following functions to include/mps/context.h:

// Set the number of threads, see "mpsolve -j" option
void mps_context_set_n_threads (mps_context * s, int n_threads);

// Restrict the search set for the roots, see "mpsolve -S" option
void mps_context_set_search_set (mps_context * s, mps_search_set set);

// Detect properties of the roots, see "mpsolve -D" option
void mps_context_set_root_properties (mps_context * s, char root_properties);

// Read the starting approximations from the given file, see "mpsolve -s" option
void mps_context_set_root_stream (mps_context * s, FILE * rtstr);

Allows to restrict the search set for the roots when using libmps directly (without mpsolve executable).
Allows to set the number of threads when using libmps directly (without mpsolve executable).
Allows to define which properties of the roots must be determined by MPSolve when using libmps directly (without mpsolve executable).

TODO: introduce special enum type for the flags MPS_OUTPUT_PROPERTY_NONE, MPS_OUTPUT_PROPERTY_REAL, MPS_OUTPUT_PROPERTY_IMAGINARY?
Allows to define roots file when using libmps directly (without mpsolve executable).
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

Successfully merging this pull request may close these issues.

libpms API is missing some features available via command-line
1 participant