Prev: how to restore GUI after it has terminate by function waitbar in the GUI
Next: Grammar inference
From: Paul Miggiels on 10 Mar 2010 12:41 Hi, I'm a beginner with MatLab and I have to solve a rather tricky problem. I have created 6 functions, which all depend on 5 variables, of which for two I have found a relation, so actually there are 4. But those 4 variables do have boundaries. The boundaries given are: Lc : 0.25 < Lc < 0.30 Ro: Ro < 0.05 Ri: Ri = 0.577*Ro Dc: no boundaries What I am looking for is the ultimate combination of these variables, within the boundaries specified. However, besides the boundaries of the variables, there are other restrictionst: REax < 2000 REtan < 108 atan(tanA): 0 < atan(tanA) < 0.5pi Om^2*Lc*(Ro^3-Ri^3)/Dc = 803,1595 The .m-files with the functions can be found at: http://www.paulmiggiels.com/files/m-files.rar Like I said, I'm only just working with Matlab and I have no idea what way to go to solve this. Thanks in advance.
From: James Allison on 10 Mar 2010 15:48 Sounds like a constrained optimization problem (finding an 'ultimate' solution, subject to equality and inequality constraints). If the functions are smooth and continuous then you can use gradient-based algorithms, such as those employed by fmincon in the optimization toolbox: http://www.mathworks.com/products/optimization/ If the functions are not smooth you can try some of the algorithms in the global optimization toolbox (formerly known as GADS): http://www.mathworks.com/products/global-optimization/ If you need help in using these functions beyond reading the documentation you can contact technical support (www.mathworks.com -> support -> contact support). -James Paul Miggiels wrote: > Hi, > > I'm a beginner with MatLab and I have to solve a rather tricky problem. > I have created 6 functions, which all depend on 5 variables, of which > for two I have found a relation, so actually there are 4. But those 4 > variables do have boundaries. > > The boundaries given are: > Lc : 0.25 < Lc < 0.30 > Ro: Ro < 0.05 > Ri: Ri = 0.577*Ro > Dc: no boundaries > > What I am looking for is the ultimate combination of these variables, > within the boundaries specified. However, besides the boundaries of the > variables, there are other restrictionst: > REax < 2000 > REtan < 108 > atan(tanA): 0 < atan(tanA) < 0.5pi > Om^2*Lc*(Ro^3-Ri^3)/Dc = 803,1595 > > The .m-files with the functions can be found at: > http://www.paulmiggiels.com/files/m-files.rar > > Like I said, I'm only just working with Matlab and I have no idea what > way to go to solve this. > > Thanks in advance.
|
Pages: 1 Prev: how to restore GUI after it has terminate by function waitbar in the GUI Next: Grammar inference |