How to maximize a function if I have both integer and continuous variables?
1 次查看(过去 30 天)
显示 更早的评论
How to maximize a function if I have both integer and continuous variables? What is the right syntax? I have to use constraints for handling integer variables?
0 个评论
回答(2 个)
Jeff Miller
2018-10-27
Here is an adaptation of fminsearch that allows you to mix both integer and continuous variables: fminsearcharb. It probably won't work well if you have a lot of variables, though.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!