Why do i receive Solving problem using linprog. The dual-simplex algorithm uses a built-in starting point; ignoring supplied X0. Problem is unbounded.
Ältere Kommentare anzeigen
Can anyone tell or explain me why the below is coming after writing the code:-
x = optimvar('x',2,'LowerBound',[0 0],'UpperBound',[inf inf]);
obj = (45* x(1) + 80* x(2));
A = 5*x(1) + 20*x(2) <= 400;
B = 10*x(1) + 15*x(2) <=450;
Prob = optimproblem('Objective',obj, 'ObjectiveSense', 'maximize');
prob.Contraints.con_1 = A;
prob.Contraints.con_2 = B;
x0.x = [0 0];
[sol, fval, exitflag, output] = solve(Prob, x0);
Solving problem using linprog.
The dual-simplex algorithm uses a built-in starting point;
ignoring supplied X0.
Problem is unbounded.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Solver Outputs and Iterative Display finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!