MATLAB Answers

0

How to pass Options as an argument in quadprog

Asked by Yize Wang on 20 Aug 2019 at 16:24
Latest activity Answered by Stephen Cobeldick on 20 Aug 2019 at 16:27
Dear all,
In MATLAB help, the quadprog() function can be used with either
  • x = quadprog(H,f)
  • x = quadprog(H,f,A,b,Aeq,beq,lb,ub,x0,options)
I would like to pass "options" as an argument without pass other arguments like "A,b,Aeq,beq,lb,ub,x0". Is it possible to call the function in a way like this "x = quadprog(H,f,options)"?
Thank you in advance.

  0 Comments

Sign in to comment.

1 Answer

Answer by Stephen Cobeldick on 20 Aug 2019 at 16:27
 Accepted Answer

x = quadprog(H,f,[],[],[],[],[],[],[],options)

  0 Comments

Sign in to comment.