Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.
Error in solution>CBFcon (line 88)
c(i) = -(((X(i) - x_curr)/sqrt((X(i) - x_curr)^2 + (X(i+n) - y_curr)^2 )) * X(i + 3*n) + ((X(i+n) - y_curr)/sqrt((X(i) - x_curr)^2 + (X(i+n) - y_curr)^2 )) * X(i + 4*n) + alpha(sqrt((X(i) - x_curr)^2 + (X(i+n) - y_curr)^2 ) - D_obs));
Error in solution>@(X_h)CBFcon(X_h,n,deltaT,X_h_o,alpha,D_obs) (line 56)
nonlcon = @(X_h) CBFcon(X_h, n, deltaT, X_h_o, alpha, D_obs);
Error in fmincon (line 650)
[ctmp,ceqtmp] = feval(confcn{3},X,varargin{:});
Error in solution>safetyModule (line 65)
dec = fmincon(fun,x0,A,b,Aeq,beq,lb,ub,nonlcon);
Caused by:
Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.
4 Commenti

- It cannot be copy-pasted.
- It doesn't gives us the values accurately, because the screenshot only displays them to four decimal places
Risposte (1)
25 Commenti




- equality constraint- initial position and velocity must be equal to current position and velocity of particle
- equalilty constraint- basic equations of motion (d= r*t) describing evolution of position over the n hoirzon timesteps
- inequality constraint- acceleration (how much velocity variables can vary from one horizon timestep to the next)
- upper bounds and lower bounds for velocity
- nonlinear constraint- safety condition ensuring no colliisions with the obstalces occur

Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
