MATLAB TO HP PRIME
|
12-21-2023, 10:50 AM
Post: #1
|
|||
|
|||
MATLAB TO HP PRIME
Can someone help me to turn this matlab code into an hp prime program code? It's a single iteration of simplex:
A = [ 8 10 -9 9 7 1 0 0; 4 9 -8 -10 -7 0 1 0; 8 1 -4 5 -8 0 0 1; ]; C = [5 3 5 0 -1 0 0 0]; b = [152;112;159]; base0 = [1,3,7] B = A(:,base0) cb = C(base0) xb = B\b z0 = cb*xb cn = C; cn(base0) = [] N = A; N(:,base0) = [] cnred = cn - cb*inv(B)*N restrict = xb./(inv(B)*N*[0 0 0 0 1]') |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
MATLAB TO HP PRIME - xavimb26 - 12-21-2023 10:50 AM
RE: MATLAB TO HP PRIME - matalog - 12-21-2023, 01:39 PM
RE: MATLAB TO HP PRIME - xavimb26 - 12-21-2023, 01:47 PM
RE: MATLAB TO HP PRIME - Namir - 01-03-2024, 12:08 AM
RE: MATLAB TO HP PRIME - xavimb26 - 12-21-2023, 01:49 PM
RE: MATLAB TO HP PRIME - xavimb26 - 12-21-2023, 05:47 PM
RE: MATLAB TO HP PRIME - twdeckard - 12-21-2023, 06:17 PM
RE: MATLAB TO HP PRIME - rprosperi - 12-22-2023, 01:30 PM
RE: MATLAB TO HP PRIME - xavimb26 - 12-22-2023, 01:38 PM
RE: MATLAB TO HP PRIME - matalog - 12-30-2023, 08:15 AM
RE: MATLAB TO HP PRIME - MikeSD - 01-04-2024, 05:49 PM
RE: MATLAB TO HP PRIME - rprosperi - 12-22-2023, 01:50 PM
RE: MATLAB TO HP PRIME - Dougggg - 12-22-2023, 04:02 PM
RE: MATLAB TO HP PRIME - batx27 - 12-25-2023, 04:12 AM
RE: MATLAB TO HP PRIME - twdeckard - 12-23-2023, 02:16 AM
RE: MATLAB TO HP PRIME - twdeckard - 12-25-2023, 06:33 PM
RE: MATLAB TO HP PRIME - twdeckard - 01-04-2024, 12:14 AM
RE: MATLAB TO HP PRIME - StephenG1CMZ - 01-04-2024, 12:12 PM
|
User(s) browsing this thread: 6 Guest(s)