MATLAB: Converting a maximizing problem into a minimizing program using linprog

linprogMATLAB

Hi guys,
i have a question about the function linprog.
I want to use this function, and according to the matlab database the function linprog can be applied so that it solves for:
In my case i want to maximize the vector x. Can Anyone help me and tell me how to convert it? What effects will it have on the A matrix and the upper / lower bounds?
Thanks a lot!
Kev

Best Answer

You just need to reverse the sign of f. Don't touch the rest.