Execution of script quadprog as a function is not supported

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)

Categories

Products

Release

R2021a

Asked:

on 30 Jun 2021

Answered:

on 30 Jun 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!