Recently , i am trying to convert some code from matlab to c and fmincon in matlab is very important part in my project. In the project fmincon is called with options "gradObj on" which means only object grad is used. But in nlopt project, it seems like the object grad and nonl constraints grad must use at the same time. How can I fix this problem?
Recently , i am trying to convert some code from matlab to c and fmincon in matlab is very important part in my project. In the project fmincon is called with options "gradObj on" which means only object grad is used. But in nlopt project, it seems like the object grad and nonl constraints grad must use at the same time. How can I fix this problem?