Javier Garcia
Content Feed
提问
How do I minimize a function graphically?
I am trying to minimize f (x1, x2) = (x1 − 1)^2 + (x2 − 5)^2 subject to −x1^2 + x2 ≤ 4 −(x1 − 2)^2 + x2 ≤ 3 My MATLAB code...
2 years 前 | 1 个回答 | 0
1
个回答提问
I'm trying to maximize the following function given the constraints using linprog, but I can't seem to figure it out. What am I doing wrong?
Maximize f= 5x+2y subject to 3x + 4y ≤ 24 x − y ≤ 3 x + 4y ≤ 4 3x + y ≥ 3 x ≥ 0, y ≥ 0 MATLAB CODE: clc, clear all ...
2 years 前 | 1 个回答 | 0