How can I condense this into one linear constraint?

| | | How can I condense these 2 constraints in the attached image into one linear constraint?|||
Any idea will be appreciated.

 채택된 답변

John D'Errico
John D'Errico 2016년 6월 21일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Linearization에 대해 자세히 알아보기

질문:

2016년 6월 21일

답변:

2016년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by