How can I condense this into one linear constraint?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Taner Cokyasar
le 21 Juin 2016
Réponse apportée : John D'Errico
le 21 Juin 2016
| | | How can I condense these 2 constraints in the attached image into one linear constraint?|||
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154264/image.png)
Any idea will be appreciated.
0 commentaires
Réponse acceptée
John D'Errico
le 21 Juin 2016
You cannot condense TWO distinct linear constraints into ONE linear constraint, where the distinction is based on another linear computation. You certainly cannot convert an inequality into an equality constraint, based on the values of another constraint.
Even worse, testing for exact equality among floating point numbers will cause problems, because your very next question will be an anguished one, wondering why your code does not work.
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!