"Thomas Bunn" wrote in message <kmtnqk$jhh$1@newscl01ah.mathworks.com>...
> I am using fminsearch to minimize a function that depends on 5 variables. I want two of the variables to be integers. Is there a way to pass integers and real numbers to the function using fminsearch?
========
No, there is not. You would need GA from the Global Optimization Toolbox, which has options for mixed integer programming
> I am using fminsearch to minimize a function that depends on 5 variables. I want two of the variables to be integers. Is there a way to pass integers and real numbers to the function using fminsearch?
========
No, there is not. You would need GA from the Global Optimization Toolbox, which has options for mixed integer programming