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!