1.0

1.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 3.58 KB File ID: #21062

Qudratic Programming problem solved by linear complementory pivoting

by Hong

 

13 Aug 2008 (Updated 13 Aug 2008)

Qudratic Programming problem solved by linear complementory pivoting

| Watch this File

File Information
Description

This is a test version. It passed two test cases and return the right result. More tests should help to improve this code. Your suggestions are welcome in the continuous improvements.

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
13 Aug 2008 Scott Miller

Missing an explanatory equation in the comments, clearly just an oversight.

14 Aug 2008 Duane Hanselman

The help text does not explain the input and output arguments at all. The user is left to guessing how many there are, what they are, and what their dimensions are.
Little vectorization is done. For example, the following code from the submission is pretty silly.
for i = 1:Rows
    Basic(i) = i;
end
The variable Basic is not even preallocated.

To cite another example, one line contains the command or function,
    reture;
which is not included in the submission and is not a function in basic MATLAB

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
optimization Hong 22 Oct 2008 10:14:41
quadratic programming Hong 22 Oct 2008 10:14:41
linear Hong 22 Oct 2008 10:14:41
complementary Hong 22 Oct 2008 10:14:41
pivoting Hong 22 Oct 2008 10:14:41

Contact us at files@mathworks.com