Hello,
I need some assistance in balancing a decision tree. Instead of showing what to do with a set of inputs, I want to be able to balance the output to zero if the inputs are out of balance. It's probably best with an example...
A1 B1 C1 -2
A1 B2 C2 -2
A2 B2 C2 -1
A2 B3 C2 -1
A2 B4 C3 -1
A3 B3 C2 -1
A3 B4 C2 -1
A3 B5 C3 -1
A4 B1 C1 -1
A4 B2 C2 0
Logically, to balance everything to zero, it's easy to see that you need to do the following:
+2 for any input with A1
+1 for any input with A2
+1 for any input with A3
+1 for any input with A4 AND B1
This is much easier than going line by line and balancing it without simplifying each expression.
The real problem comes in when there's hundreds of lines, with up to 15-20 inputs. It would take a regular person days to figure it out, compared to writing a macro which would do it much faster.
I don't even know where to start, or how to start coding this to have the computer figure it out. Does anyone have any suggestions on what to do? Any help is greatly appreciated.
Thanks!
I need some assistance in balancing a decision tree. Instead of showing what to do with a set of inputs, I want to be able to balance the output to zero if the inputs are out of balance. It's probably best with an example...
A1 B1 C1 -2
A1 B2 C2 -2
A2 B2 C2 -1
A2 B3 C2 -1
A2 B4 C3 -1
A3 B3 C2 -1
A3 B4 C2 -1
A3 B5 C3 -1
A4 B1 C1 -1
A4 B2 C2 0
Logically, to balance everything to zero, it's easy to see that you need to do the following:
+2 for any input with A1
+1 for any input with A2
+1 for any input with A3
+1 for any input with A4 AND B1
This is much easier than going line by line and balancing it without simplifying each expression.
The real problem comes in when there's hundreds of lines, with up to 15-20 inputs. It would take a regular person days to figure it out, compared to writing a macro which would do it much faster.
I don't even know where to start, or how to start coding this to have the computer figure it out. Does anyone have any suggestions on what to do? Any help is greatly appreciated.
Thanks!