ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

constrained linear programming

I have the following problem
A*X=B and X>0
A= matrix(n,12)
B= vector(n)
X= vector(12)
n>>12
A and B are known input matrix and vector, X is the solution vector of the unknown variables.
I tried to solve this problem with the linear equation solver without contraints. But I got some negative answers for X, and in my problem the answer has to be in the positive domain.
I know that MatLab can solve this problem with a optimisation function, for example fmincon.
Now I need to find a constrained linear optimization method that can solve this problem in LabView, without using MatLab.
Is it possible to solve the constrained equation above in LabView?
0 Kudos
Message 1 of 2
(2,874 Views)
Yes. However system is overdetermined Labview search solution by least square minimizing function ||AX-Y||.
You have to be under LV FDS or PDS.
Romek.
0 Kudos
Message 2 of 2
(2,874 Views)