cond = 
solve set of inequalities and plot the solution
Show older comments
I want to solve the following inequalities and then plot the solution:
syms alpha beta
eq_E_Bar=0.0664057051742095*alpha+beta*(-0.0900076050430003)<=0;
eq_I_Bar=-0.147476397055133*alpha+beta*(-0.160063987615969)<=0;
eq_I_CD=-0.122381054306963*alpha+beta*(0.125233998946155)>=0;
eq_CH=0.0733606912576878*alpha+beta*(0.0218230571691888)>=0;
eq_E_CD=-0.00347678534715134*alpha+beta*(0.0182604037132820)>=0;
eq_CI=-0.0559753491327545*alpha+beta*(0.0352263939031544)>=0;
feasible_sol=solve([eq_E_Bar,eq_I_Bar,eq_I_CD,eq_CH,eq_E_CD,eq_CI],[alpha beta],ReturnConditions=true)
cond=feasible_sol.conditions
Is my code correct?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!