필터 지우기
필터 지우기

Error using barrier Objective function is undefined at initial point. Fmincon cannot continue. Error fmincon (line 848)

조회 수: 1 (최근 30일)
I run my main program Train_PF.m. In my main program Train_PF.m , I have declared the initial point u0 as initial point. But there is error said undefined at initial point.
Steps i= 2
Elapsed time is 1.780754 seconds.
Elapsed time is 0.037505 seconds.
Elapsed time is 0.025071 seconds.
Elapsed time is 0.024210 seconds.
Elapsed time is 0.028659 seconds.
Elapsed time is 0.028935 seconds.
Elapsed time is 0.028281 seconds.
Steps i= 3
Error using barrier
Objective function is undefined at initial point. Fmincon cannot continue.
Error in fmincon (line 848)
[X,FVAL,EXITFLAG,OUTPUT,LAMBDA,GRAD,HESSIAN] = barrier(funfcn,X,A,B,Aeq,Beq,l,u,confcn,options.HessFcn, ...
Error in Train_PF (line 115)
[u, Cost(i,1), Exitflg(i,1), output] = fmincon(@(u) Fungsicos( Np, Tim_step, X0 ,u,
Vehicle_Type,Q1,Xdes,R1,F1,Xa,G1,Xnba), ...
  댓글 수: 9
Ivan Dwi Putra
Ivan Dwi Putra 2020년 11월 9일
ok thank you everyone, i will try first to understand the error especially NaN u0
Ivan Dwi Putra
Ivan Dwi Putra 2020년 11월 10일
편집: Ivan Dwi Putra 2020년 11월 10일
How i change NaN in the workspace? I'm trying to find the meaning error but still confuse. Can anyone help me?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by