Linear Programming: Can you input fixed values to the output matrix ('x') before solving linprog for 'x'?

1 visualizzazione (ultimi 30 giorni)
I'm solving a linear programmig problem with "linprog".
I'm looking to see if it's possible to assign values to specific cells in the output matrix 'x' before solving for 'x'.
Thanks in advance!

Risposta accettata

Matt J
Matt J il 21 Ott 2019
You can enforce this using upper and lower bounds
ub(i)=lb(i)=knownvalue
  1 Commento
Austin Brehm
Austin Brehm il 21 Ott 2019
Modificato: Austin Brehm il 21 Ott 2019
Thanks Matt. I'll try that. I knew that you can set the bounds to a specific range. I didn't know that you could set bounds to a specific value

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by