multiple decision variables in matlab programming

I currently have the linprog working with one decision variable. But is there a way to solve a program with 2 decision variables?
For example, my second decision variable is:
z = .5(x1 + x2).

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

on 23 Nov 2011

Community Treasure Hunt

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

Start Hunting!