Search found 4 matches

by shoebmoon
2 years ago
Forum: Modeling
Topic: Initial values for the variables in NLP
Replies: 2
Views: 2656

Re: Initial values for the variables in NLP

Thanks for your reply Michael. The variable i wanted to fix for t=0 (t being the set for time points), is the part of Initial value problem ODE (which i am integrating numerically in GAMS), so i used the term enforce. My idea was, that at the initial value provide by me, either the solver will give ...
by shoebmoon
2 years ago
Forum: Modeling
Topic: Initial values for the variables in NLP
Replies: 2
Views: 2656

Initial values for the variables in NLP

Hi i am trying to enforce an initial value for the variable X(t) as follows And i want the initial value for the other variable Cco2l(t) to be calculate accordingly through the equation. But the error comes that symbol (Cco2l.l) declared but no values have been assigned. I thought the equation would...
by shoebmoon
4 years ago
Forum: Modeling
Topic: Division by zero execution error
Replies: 1
Views: 2920

Division by zero execution error

Hi, Need help in correcting the division by zero execution time error in my code attached The errors occur in equation 43-47. I have declared the variables in denominator as positive variable and also bounded in constraints. :( e43.. CE1 =e= Alpha*((Q12/(U12*(0.5*Theta11*Theta21*(Theta11+Theta21))**...
by shoebmoon
5 years ago
Forum: Modeling
Topic: issue with trapezoidal rule to solve IVP ODE, any lead appreciated
Replies: 0
Views: 1699

issue with trapezoidal rule to solve IVP ODE, any lead appreciated

Hi everyone, Recently I am facing problem in modeling trapezoidal rule to solve initial value ODE through descretization . Trapezoidal rule for IVP or BVP ODE : dy/dx = f(y); y(n+1) = y(n) + h/2 ( f(y(n+1)) + f(y(n))) /here h, is the step size/ y(1)=a Example ODE: A*dh/dt = theta - kt*qout , where q...