snopt / snopt-interface

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

Specify SNOPT options that require string arguments #28

Closed sanjeev-narayanaswamy closed 5 years ago

sanjeev-narayanaswamy commented 5 years ago

Hi @gnowzil ,

I'm just wondering if it is possible to set SNOPT options that require string arguments through the C interface. For example, I am trying to set:

QPSolver QN
System information Yes

Could you please tell me if there is a function in snopt_cwrap.h that would allow this?

Thanks for your help.

gnowzil commented 5 years ago

setParameter, setIntParameter, setRealParameter are the equivalent functions to the Fortran routines snSet, snSetI and snSetR of SNOPT.

For an all-string option, use setParameter.

sanjeev-narayanaswamy commented 5 years ago

Thanks a lot for your help @gnowzil, I really appreciate it.