can we create other function to call the constraint function or create gradient of constraint function without input directly from other source in fmincon?
1 次查看(过去 30 天)
显示 更早的评论
Dear sir,
I have worked with fmincon when i try to input the gradient of constraint function it's okay when it was small problem but if in the big problem case, can we create other function to call the gradient of constraint function by no need to input it manually ?
thank you sir,i am sorry if make you difficult to understand with my poor english.
Best Regards!
0 个评论
采纳的回答
Walter Roberson
2015-5-27
When you use matlabFunction() to create your gradient from symbolic form, tell matlabFunction to write the result to a file. See Write Generated MATLAB Function to File
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!