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.
Sum of difference of integrals
Risposte (1)
24 Commenti


- Your nonlinear constraint function tries to use lambda, but lambda has no role at that point. The objective function is strictly based on s
- Your c computes values that are certain to be complex-valued given your upper and lower bounds on s (in particular, the fact that is is real-valued at all). The automatic comparison of those complex values to 0 is probably not going to do what you want
- Your ceq computes values that involve the square of complex quantities that you can be certain are not the square roots of a negative real value -- that is, the square of the quantities is going to give you a complex quantity. Those are then subtracted from the undefined lambda, squared. It is unlikely that the result will exactly balance to be a positive real number suitable for comparison to 0 for equality constraints. The algorithm expects a real number to be returned -- the algorithm uses the sign() of the returned value to try to figure out how to improve the input parameter so that the equality is met. If it does not just fall over, it is unlikely to do what you want.
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 (한국어)