optimization with integer constraints

Hey Matlab Experts,
I am trying to use convex optimization but some of the constraint variables are integers. The constraint variable has to be any integer belonging to the following set {-16,-15,......, 0,1,2,....,15,16}
How to code above constraint variable using this function "quadprog"??
Thanks

回答 (1 件)

Torsten
Torsten 2018 年 5 月 16 日

2 投票

https://de.mathworks.com/help/optim/examples/mixed-integer-quadratic-programming-portfolio-optimization.html
Best wishes
Torsten.

製品

リリース

R2017b

質問済み:

2018 年 5 月 15 日

回答済み:

2018 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by