Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
Sum of difference of integrals
Réponses (1)
24 commentaires


- 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.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
