Solving GeneralEquations

The engine.
Post Reply
jo3ran
Posts: 2
Joined: Mon Sep 29, 2014 3:07 pm

Solving GeneralEquations

Post by jo3ran »

Hi Guys,

currently we are facing a small problem using the equation networks. While applying them having the Genie-Frontend everything works fine, also loading the .xdsl with the C++ API works perfect. But we are currently stopped at that point where we want the equation to be solved.

Could you please tell us the appropriate command to get results of an equation?
Here is an example right from the .xdsl file:

Code: Select all

		<equation id="a">
			<definition>a=-1</definition>
		</equation>
		<equation id="b">
			<definition>b=-1.5</definition>
		</equation>
		<equation id="L_E">
			<parents>a b</parents>
			<definition>L_E=0.1012*(1/(0.1+Exp(4.5*a)))*0.8064*(1/(0.8+Exp(5*b)))</definition>
		</equation>
Rearranging L_E using SolveFor from DSL_generalEquation and all of that works fine. But how can we solve the equation in general, having a and b set as evidence?

Thanks in advance, best regards
Joeran
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Solving GeneralEquations

Post by shooltz[BayesFusion] »

jo3ran wrote:Rearranging L_E using SolveFor from DSL_generalEquation and all of that works fine. But how can we solve the equation in general, having a and b set as evidence?
Do you want to get the numeric value of L_E with known values of a and b?
jo3ran
Posts: 2
Joined: Mon Sep 29, 2014 3:07 pm

Re: Solving GeneralEquations

Post by jo3ran »

Exactly. Yes.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Solving GeneralEquations

Post by shooltz[BayesFusion] »

You'll need at least two header files which are not distributed with public SMILE binaries. I'll email these to you; send me a private message with the email address to use.
Post Reply