Hi guys, i have this two generator equations and i want to use LINPROG to find the optimal power genion for each unit and get the lambda value given an equality constraint of p1+p2=220MW.
clc; clear all; close all;
load=220;
f=[0.2 3 0.175 3];erat
aeq=[1 1 1 1];
beq=load;
%lb=[0 0]
%ub=[500 0]
[x,fval]=linprog(f,[],[],aeq,beq,[],[])
This is what i have tried but its not working.
Thanks