Best Approach for Optimisation using both doubles and integers as variables
1 view (last 30 days)
Show older comments
I have an optimisation problem where the inputs are both integer based (take from a table of options say 50) and double based (dimensions). Is there a way of including both types of variables in an optimisation using the optimisation toolbox or other method?
What I have been doing is limiting the GA between 0 and 1 then scaling the values. For the integer I have ben assigning them ranges. For example for 10 options 0 to 0.1 would be 1, 0.1 to 0.2 is 2 and so on. I know this is not very efficient
Any suggestions would be appreciated
Ross
0 Comments
Accepted Answer
Alan Weiss
on 15 Mar 2013
If you have Global Optimization Toolbox R2011b or later, then mixed integer programming is a built-in feature. See the documentation:
If you have R2011a or earlier, you can try this tech support solution, which will require you to do some programming.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!