Feeds
提问
I am trying to output an array of results for Faxy, Fbxy, Fcxy and Fdxy, but the methods I have used so far are returning the incorrect values as I think it is carrying values. I have stripped it back down to the original to avoid confusion.
H=2; T=4; omega=2*pi()/T; Fd=3; Fi=60; for i=1:5 d=(i*5)+5; wLo=(9.81*T^2)/(2*pi()); if wLo>(2...
7 years 前 | 0 个回答 | 0
0
个回答提问
How to retrieve an unknown value from a matrix
Point of this task is to retrieve a value of "w" from the matrix "A", where we know that the determinant of this matrix is equal...
7 years 前 | 2 个回答 | 0
2
个回答提问
For each fmincon it overwrites the previous values, meaning at the end there is only 1 set of values when there should be 100. The code is running 100 times and displays all sets of values but not storing all sets. How do I resolve this?
for X=1:1:10 for Y=1:1:10 ObjFcn = @myObjective; x0 = [10 0.001 7]; LB = [0 0 0]; UB = [50 0.5 7.5];...
7 years 前 | 2 个回答 | 0
2
个回答提问
How do I automate this fmincon code so it will return values from 10 variations of two variables contained in the constraint file? The variables I am varying are not variables that are being optimized.
ObjFcn = @myObjective; x0 = [10 0.001 7]; LB = [0 0 0]; UB = [50 0.5 7.5]; ConsFcn = @myConstraints; [x] = fminco...
7 years 前 | 1 个回答 | 0