필터 지우기
필터 지우기

how we know my optimized result is correct

조회 수: 1 (최근 30일)
RAHUL KUMAR
RAHUL KUMAR 2019년 9월 10일
댓글: Walter Roberson 2019년 9월 10일
I want to know how can i check my optimized result is correct,yeah i know constriants and objective function but i don't know my lower and upper bound or intial guess values,it is just assumptions value for every different objective function ,getting different results. can you please tell me how to check optimized result is correct.
also ,when i use GA for same lb and ub at same constraints value,every time it gives different results,how can i know which result is correct
  댓글 수: 3
RAHUL KUMAR
RAHUL KUMAR 2019년 9월 10일
my question is when i use fmincon , and weight is my objective function so when i change my guess value and lb or ub. it shows that ''optimization completed ,objective function is non-decreasing function and constraints is satisfied" but i'm getting negative value of weight(objective function),how it is negative, or sometime i'm getting positive value of my function.
so my question how to know which value is correct
Walter Roberson
Walter Roberson 2019년 9월 10일
As we have not seen your code, we as outside observers have no reason to think that the objective function could not go negative.
If a negative weight does not make sense for your physical situation, then one of the following is true:
  1. Your equations are wrong; or
  2. Your constraints (bounds, linear inequality, linear equality, nonlinear inequality, nonlinear equality) are wrong; or
  3. You used integer constraints and tried to specify constraints that are not compatible with integer constraints and overlooked the warning message that said that the other constraints would be ignored

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by