fmincon does not respect boundaries316 (12/26/2012 9:27:40 PM) comp.soft-sys.matlab I have a problem with ten variables.
I have lower and upper boundaries for each variable. During the optimization process (e.g 2nd iteration), the fmincon uses input variables violating the boundaries. This be... matteo
XLS data red by Fortran3136 (9/5/2011 9:36:02 PM) comp.lang.fortran I would run a Fortran code that reads data from a Excel file. For Matlab users, I would 'xlswrite' and 'xlsread' in Fortran. I found something: www.polyhedron.com/qtxls and AUTODICE. I use CVF6. Which package d... Allamarein
Not allowing complex values445 (5/20/2011 4:39:51 PM) comp.soft-sys.matlab I would Matlab does not accept complex variables. Thus I would declar every variable as 'double precision'. If Matlab returns an error or a warning for complex values, this trick would save me by banal errors ... Allamarein
ode45 solver and outputfcn237 (4/25/2011 9:19:24 PM) comp.soft-sys.matlab I often solved my ODEs by the sintax: [T,Y] = ode15s(@vdp1000,[0 3000],[2 0]); and let's say the problem was: function dy = vdp1000(t,y) dy = zeros(2,1); % a column vector dy(1) = y(2); dy(2) = 1000*(1 - ... Allamarein
Partial derivative2637 (3/3/2011 9:26:57 PM) comp.lang.fortran Let's say I have this function: REAL*8 FUNCTION F(x,y,z) IMPLICIT NONE REAL*8, INTENT(IN) :: x,y,z f = log(x)+y**2+z END FUNCTION I would compute automatically the three partial derivatives of the above funct... matteo.diplomacy(97)
Double integral7101 (3/12/2011 9:48:51 AM) comp.lang.fortran I have a function: FUNCTIION DS(x,y) ..... end FUNCTION I need a function to integrate the previous function in an interval [a1,a2] [b1,b2]. Where can I find that? ... matteo.diplomacy(97)
COMMON and IMPLICIT NONE953 (4/5/2011 5:59:40 PM) comp.lang.fortran On the basis that it is an obsolete way to code, but it does not depend on me and I am forced to use a COMMON Block. In fact I use module generally. Anyway, the hereafter code would work? Subroutine Example(a,... matteo.diplomacy(97)