Execution of script quadprog as a function is not supported
Show older comments
hi. I've tried to run simple quadprog script from optimization toolbox example
clc
clear all
H = [1 -1; -1 2];
f = [-2; -6];
Aeq = [1 1];
beq = 0;
[x,fval,exitflag,output,lambda] = ...
quadprog(H,f,[],[],Aeq,beq);
but I got some error in the result.
Execution of script quadprog as a
function is not supported:
D:\OneDrive - Institut Teknologi Sepuluh
Nopember\Kuliah Teknik Elektro\Semester
2\Metode statistik dan optimasi_Tele\pak
ronny\quadprog.m
Error in quadprog (line 10)
quadprog(H,f,[],[],Aeq,beq);
I have installed the optimization toolbox. what is the cause of failing to run the script? how to solve it
Answers (1)
Matt J
on 30 Jun 2021
0 votes
Do not name your script quadprog.m
Categories
Find more on Quadratic Programming and Cone Programming 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!