how to optimize a function which optimization variable is not in it directly?

조회 수: 2 (최근 30일)
Sara Rajaee
Sara Rajaee 2019년 7월 17일
답변: Walter Roberson 2019년 7월 25일
there is a function in the picture which I should optimize it. Dm and I are matrixes . I has an indirect role in cacules of this function. how can I do that in matlab

답변 (2개)

Alan Weiss
Alan Weiss 2019년 7월 19일
This looks like a binary programming problem. I don't know how the D_m depend on the I_{n,k}, but it looks like there is no big issue. Use intlinprog for the solution, or the problem-based approach.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 3
Walter Roberson
Walter Roberson 2019년 7월 21일
There is nothing in the formula that you posted that involves max()?
Sara Rajaee
Sara Rajaee 2019년 7월 25일
yeah, I have not posted all of the question here, but in part of that there are some max() function.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2019년 7월 25일
If you are using max and it is a discrete programming problem then try all of the possible input combinations and pick the best results.
If trying all of the possible inputs is not feasible (for example too slow above 2^40 possibilities) then ga()
fmincon cannot be used for discrete variables. intlinprog cannot be used when max() appears in the formula or constraints.
Sometimes instead of using max it can be feasible to run several slightly different problems, each assuming that one of the possibilities is the max, and then to take the result in which the max was true.

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by