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

1 view (last 30 days)
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!

Accepted Answer

Matt J
Matt J on 21 Oct 2019
You can enforce this using upper and lower bounds
ub(i)=lb(i)=knownvalue
  1 Comment
Austin Brehm
Austin Brehm on 21 Oct 2019
Edited: Austin Brehm on 21 Oct 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

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!