You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a previous version, I was able to use SNOPT 7.6 through snopt76_adapter. However, in the current version, snopt_adapter_76.h is referenced in snopt_adapter.h but I cannot find it. Still, I can successfully install if I comment out setUserFun(&SnoptAdapter::ObjectiveAndConstraintFct); in snopt_adapter.cc which is somehow not declared. Yet, make test fails.
Also, there is a mismatch for the SNOPT version variable between ifopt/ifopt_snopt/cmake/FindSNOPT.cmake and ifopt/ifopt_snopt/CMakeList.txt, i.e., snopt_v76 vs SNOPT_v76.
Solution The following steps solved the issue for me:
Correcting the variable name problem
Adding this->initialize("print_file.out",1); (namely, initializing SNOPT) and removing setUserFun(&SnoptAdapter::ObjectiveAndConstraintFct);
I hope that helps and thanks again for sharing your work.
The text was updated successfully, but these errors were encountered:
First of all, thanks for this great interface.
In a previous version, I was able to use SNOPT 7.6 through snopt76_adapter. However, in the current version, snopt_adapter_76.h is referenced in snopt_adapter.h but I cannot find it. Still, I can successfully install if I comment out
setUserFun(&SnoptAdapter::ObjectiveAndConstraintFct);
in snopt_adapter.cc which is somehow not declared. Yet,make test
fails.Also, there is a mismatch for the SNOPT version variable between ifopt/ifopt_snopt/cmake/FindSNOPT.cmake and ifopt/ifopt_snopt/CMakeList.txt, i.e., snopt_v76 vs SNOPT_v76.
Solution The following steps solved the issue for me:
this->initialize("print_file.out",1);
(namely, initializing SNOPT) and removingsetUserFun(&SnoptAdapter::ObjectiveAndConstraintFct);
I hope that helps and thanks again for sharing your work.
The text was updated successfully, but these errors were encountered: