snopt / snopt-interface

C/C++ API for SNOPT7
MIT License
27 stars 12 forks source link

Print to file, but not on the terminal #23

Closed hongkai-dai closed 6 years ago

hongkai-dai commented 6 years ago

Currently when I run interfaces/cexamples/toyC in snopt 7.5-1.4, I get a printout file ToyC.out, and also on the terminal where I launch toyC binary, it also print out snopt logs. How can I set SNOPT to only print to the file TyoC.out, but not to the terminal?

gnowzil commented 6 years ago

Set summOn = 0 when you call snInit. See https://ccom.ucsd.edu/~optimizers/usage/c/ for info.

hongkai-dai commented 6 years ago

Thanks! That works!