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

How to specify the size of the test problem? #312

Closed
Xiaoyi-Qu opened this issue Aug 2, 2023 · 2 comments · Fixed by #313
Closed

How to specify the size of the test problem? #312

Xiaoyi-Qu opened this issue Aug 2, 2023 · 2 comments · Fixed by #313

Comments

@Xiaoyi-Qu
Copy link

Xiaoyi-Qu commented Aug 2, 2023

I'm wondering how to set the problem dimension for some of the CUTEst problems. For instance, test problem CHAIN has the following options:

Parameters available for problem CHAIN:
NH = 50 (int) 
NH = 100 (int) 
NH = 200 (int) 
NH = 400 (int) [default]
End of parameters for problem CHAIN

I have access to the default option by calling nlp = CUTEstModel("CHAIN"). For the time being, I can access to the other options by modifying the CHAIN.sif file. My question is if there is a smarter way to work around this.

@abelsiqueira
Copy link
Member

Hi @Xiaoyi-Qu, thanks for creating the issue. This is not well documented, but you can use

CUTEstModel("CHAIN", "-param", "NH=50")

to change parameters.
I will improve the documentation a bit on this.

@Xiaoyi-Qu
Copy link
Author

Thank you very much!

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 a pull request may close this issue.

2 participants