Azzera filtri
Azzera filtri

Linprog of max LP

3 visualizzazioni (ultimi 30 giorni)
Harel Harel Shattenstein
Harel Harel Shattenstein il 5 Giu 2019
Commentato: Torsten il 5 Giu 2019
For
Screen Shot 2019-06-05 at 16.21.28.png
Runing the code:
% Linprog defined on min problem and Ax<=b for max problem take - objectiveFunction
%% The problem
objectiveFunction = -1 * [10 6 -8];
A = [5 -2 6; 10 4 -6];
b = [20 ;30];
%%Sloution
linprog (objectiveFunction, A,b)
I get that "Problem is unbounded." but the answer seems to be 170/3
  3 Commenti
Harel Harel Shattenstein
Harel Harel Shattenstein il 5 Giu 2019
Where should I add them? in the matrix A?
Torsten
Torsten il 5 Giu 2019
lb = [0 0 0];
ub = [Inf Inf Inf];

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by