As far as I see it;<br><br>1.<br>MF21 = x * A + not(x)*B<br>MF12 = x * C + not(x)*D<br><br>2. Substitute<br>MF21 = x * A + not(x)*(MF12 + constants)<br>
MF12 = x * (MF21 + constants) + not(x)*D<br><br>This IS circular! <br><br>What about:<br>MF21 = x*A + not(x)*(D+constants)<br>MF12 = x*(A+constants) + not(x)*D<br><br>Does that handle the two cases?<br><br>Otherwise, you might have to write a type in Fortran with an iterative solver... <br>
<br>Cheers,<br><br>Marcus<br>-- <br>Marcus Jones, LEED AP, M.Sc. <br><i>Freelance energy consultant</i><br><i>Vienna, Austria</i><br><br><br><br><div class="gmail_quote">On Fri, Apr 29, 2011 at 10:26 PM, Linda Lam <span dir="ltr"><<a href="mailto:lam@transsolar.com">lam@transsolar.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
I am getting a self-referencing error for the following:<br>
<br>
MF21 = x * A + not(x)*B<br>
MF12 = x * C + not(x)*D<br>
<br>
A = constant<br>
B = MF12 + constants<br>
C = MF21 + constants<br>
D = constant<br>
<br>
Theoretically, it should only calculate EITHER [A and C] OR [B and
D]. But it seems as if it sees all of the equations and thinks it's
a circular reference. Any thoughts?<br>
<br>
Also, does anyone know of some sort of conditional logic Type?<br>
<br>
<br>
<div>-- <br>
<div>
<p class="MsoNormal"><b><span style="font-size: 8pt; font-family: Arial; color: rgb(102, 102, 102);">Linda
Lam</span></b><b><span style="font-size: 7.5pt; font-family: Arial; color: rgb(102, 102, 102);"><br>
212 219 2255 | <a href="mailto:lam@transsolar.com" target="_blank">lam@transsolar.com</a><br>
Transsolar Inc. | 134 Spring Street Suite 601 | New York,
NY 10012<br>
<br>
Transsolar Climate Engineering<br>
Technical consulting for energy efficiency and
environmental quality in
buildings.<br>
New York - Stuttgart
- Munich</span></b>
</p>
</div>
</div>
</div>
<br>_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a><br>
<a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><br>
<br></blockquote></div><br>