Guest User

Untitled

a guest
May 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. t = sdpvar;
  2. x = t^2+ t + 1;
  3. y = 2*t^2 + t + 2;
  4. % Minimum distance determination version
  5. optimize(1<=t<=2,x^2+y^2,sdpsettings('solver','baron'))
  6.  
  7. % Feasibility version. [] is used instead of 0 for the objective, which accomplishes the same thing
  8. optimize([1<=t<=2,x^2+y^2-33<=0],[],sdpsettings('solver','baron'))
Add Comment
Please, Sign In to add comment