summaryrefslogtreecommitdiff
path: root/impl/main.cpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-10-23 14:40:38 +1100
committerCarlo Zancanaro <carlo@carlo-laptop>2012-10-23 14:40:38 +1100
commita1b28d756fe52a53d9d4da4d23853969fd529115 (patch)
treee599c1d3820ab9613af6ab129843f4a2132e5dbc /impl/main.cpp
parent697c1c0cd3815eee72b3eedb874fe0e044a69432 (diff)
Make the recursive solver work properly.
If you ignore the intermediate results for the strategy iteration phase then you're in the clear! I think!
Diffstat (limited to 'impl/main.cpp')
-rw-r--r--impl/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/impl/main.cpp b/impl/main.cpp
index e3e0ae3..b547c48 100644
--- a/impl/main.cpp
+++ b/impl/main.cpp
@@ -147,13 +147,14 @@ int main (int argc, char* argv[]) {
if (variables.size() > 0) {
for (unsigned int i = 0, size = system.variableCount(); i < size; ++i) {
Variable<ZBar>& var = system.variable(i);
- if (variables.find(var.name()) != variables.end())
- cout << var.name() << " = " << rho[var] << endl;
+ if (variables.find(var.name()) != variables.end()) {
+ cout << var.name() << " = " << rho[var].asKnown() << endl;
+ }
}
} else {
for (unsigned int i = 0, size = system.variableCount(); i < size; ++i) {
Variable<ZBar>& var = system.variable(i);
- cout << var.name() << " = " << rho[var] << endl;
+ cout << var.name() << " = " << rho[var].asKnown() << endl;
}
}