| MATLAB Central > MATLAB Newsreader > keep variable positive? |
|
|
|
Hi, |
|
"Sherwin " <syeo@sustainx.com> wrote in message <gtsekp$dr$1@fred.mathworks.com>... |
|
If it was my model which kept giving a negative volume, I would double check the model. Something doesn't sound right. |
|
"Matt Fig" <spamanon@yahoo.com> wrote in message <gtsggs$agr$1@fred.mathworks.com>... |
|
one trick I've sometimes used - can you formulate the model using the variable squared? then (assuming it doesn't take on complex values) the variable itself will stay non-negative |
|
Brian <briantracey@rcn.com> wrote in message <17169939.65782.1241637647850.JavaMail.jakarta@nitrogen.mathforum.org>... |
|
"Sherwin " <syeo@sustainx.com> wrote in message <gtsrl1$9qg$1@fred.mathworks.com>... |
|
"Kaushik " <kaushikkannan.13091989@yahoo.co.in> wrote in message <gu1e0r$kph$1@fred.mathworks.com>... |
|
I can't use the max() function in the equations section of Simscape. Were you using it somewhere else. I am trying to constrain an across variable that I want to ensure only the positive solution is used. Example |
|
"Robert " <rjseme@rit.edu> wrote in message <h0tf05$cns$1@fred.mathworks.com>... |
|
Arnaud, |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| max | Arnaud Miege | 15 Jun, 2009 08:29:04 |
| simscape language | Arnaud Miege | 15 Jun, 2009 08:29:04 |
| positive | Sherwin | 6 May, 2009 12:44:24 |
| variables | Sherwin | 6 May, 2009 12:44:24 |
| simscape | Sherwin | 6 May, 2009 12:44:24 |
Contact us at files@mathworks.com