Why am I receive Fmincon error ?
1 view (last 30 days)
Show older comments
I'm getting Fmincon warning every time and how can I fix it ?
demand = [600,900,900,700,800,500,500];
power_from_plant1 = 30; %MW
power_from_plant2 = 50; %MW
cost_plant1 = 150; %kr/MWh
cost_plant2 = 600; %kr/MWh
Tankloss = 0.02; %
A = [];
b = [];
Aeq = [];
beq = [];
LB = [zeros(3,7), zeros(3,7), zeros(3,7)];
UB = [24*ones(3,7), 24*ones(3,7), 300*ones(3,7)];
x0 = ones(3,7);
[xopt,fopt]=fmincon(@fun,x0,A,b,Aeq,beq,LB,UB,@non1con);
------> this part
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Nonlinear Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!