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

Cannot specify SNOPT options that require string arguments #14

Open
sanjeev-narayanaswamy opened this issue May 14, 2019 · 3 comments
Open

Comments

@sanjeev-narayanaswamy
Copy link
Contributor

Hi @darioizzo,

I am trying to pass the following options to SNOPT

QPSolver QN
System information Yes

but I couldn't find a way to do that since the plugin only allows for integer and real valued options currently. Is there any way to specify these options and others that require string arguments?

I would deeply appreciate your thoughts on this. Thanks for your help.

@darioizzo
Copy link
Member

What would be the snopt7 c routine to set these values?

As you see here (https://github.com/snopt/snopt-interface/blob/master/include/snopt_cwrap.h#L60) the snopt interface API seems to only define int and real params .... so maybe you want to ask your question in that project.

If you tell me what is that you want exposed, we can add it at the next release.

@sanjeev-narayanaswamy
Copy link
Contributor Author

Thanks for your link to the file @darioizzo. As suggested, I have just posted a question at snopt/snopt-interface#28 and will report back.

@sanjeev-narayanaswamy
Copy link
Contributor Author

I just heard back from the maintainer of snopt-interface and it seems that setParameter https://github.com/snopt/snopt-interface/blob/master/include/snopt_cwrap.h#L59 is the function we want to add.

It works for all SNOPT options and we need to pass in the entire string containing the keyword and
corresponding setting: (i.e 'QPSolver QN', 'Scale tolerance 0.99', or 'New basis file 11').

Since this also works for integer options, we would need to add an additional check to prevent the user from setting Derivative option using setParameter.

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

2 participants