Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69120

Quadratic Programming: Using Imin & Imax

$
0
0

Quick question about LabVIEW's Quadratic Programming VI (since the help for this particular VI is woefully unhelpful).  If I use the inequality constraint cluster, am I obligated to use both Imin and Imax? 

 

Right now I'm getting the {-20068: qpopt - equality constr main loop} error, but the equality constraint input is not connected to anything.  I am using the inequality constraint input, with D having size [m x n], Imin having size [0] and Imax having size [m].  Is having Imin and Imax sizes unequal a problem? If so, what if I only have bounds in one direction?  The way that I've usually seen the inequality constraints formatted (and what Matlab's quadprog uses) is:

 

Ax <= b

 

where as LabVIEW formats the inequality constraints as:

 

Imin < Dx < Imax

 

How can the two be reconciled?


Viewing all articles
Browse latest Browse all 69120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>