quadprog constraint problem - x equal one value or another
Ältere Kommentare anzeigen
Hey,
I am trying to use quadprog to calculate the minimum of a function with some basic constraints.
- I need the values of x to sum to specific total (e.g. 36)
- I need the values of x which are being minimized to equal either 0 or 6
I am running into trouble with the last constraint and was wondering if there was any way to use a logical operator or just define the variables to only be allowed to equal one value or another.
Thanks in advance for any help
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Choose a Solver finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!