my objective function should be maximized. It has 3 variables that all should be optimized, i.e. the optimization should give 3 optimized variables at the end.
Show older comments
My objective function also has an indicator function that its value depends on one of those 3 variables which has to be optimized. (if that variable is more than something the indicator function is 1 and if the variable is less than something the indicator function is 0). When I write the objective function in Matlab it asks for the variable that the indicator function depends on that. It is unknown yet, so how can I define this kind of objective function in Matlab?
1 Comment
When I write the objective function in Matlab it asks for the variable that the indicator function depends on that.
Please clarify what you mean by "it asks". Who is "it"? You mean you've written the code so that the indicator function prompts the user for data entry from the keyboard? Then you should rewrite it so that it gets entered as a normal function input argument instead.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!