How do I set a conditional condition in an optimization probem using Linprog
Ältere Kommentare anzeigen
I want to optimize my bond portfolio using Linprog. But how do I incorporate the conditional condition that: if I choose a bond out of my bond-list then the minimum piece is 200'000 and any step upward is +1000 pieces (e.g. 201k, 202k, 203k etc). So if the bond is not attractive the minimum weight must be zero but if it is selected the condition has to be applied. Using inequalities, I was only able to say that the weights are not allowed to exceed a certain limit.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Solver Outputs and Iterative Display finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!