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

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

You can enforce this using upper and lower bounds
ub(i)=lb(i)=knownvalue

1 Comment

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

Products

Release

R2019b

Tags

Asked:

on 21 Oct 2019

Edited:

on 21 Oct 2019

Community Treasure Hunt

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

Start Hunting!