fix examples using discrete factor graph product
parent
49c67d3819
commit
3c9b2a2351
|
@ -108,7 +108,8 @@ void runLargeExample() {
|
||||||
|
|
||||||
// Do brute force product and output that to file
|
// Do brute force product and output that to file
|
||||||
if (scheduler.nrStudents() == 1) { // otherwise too slow
|
if (scheduler.nrStudents() == 1) { // otherwise too slow
|
||||||
DecisionTreeFactor product = scheduler.product();
|
DecisionTreeFactor product =
|
||||||
|
*std::dynamic_pointer_cast<DecisionTreeFactor>(scheduler.product());
|
||||||
product.dot("scheduling-large", DefaultKeyFormatter, false);
|
product.dot("scheduling-large", DefaultKeyFormatter, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,8 @@ void runLargeExample() {
|
||||||
|
|
||||||
// Do brute force product and output that to file
|
// Do brute force product and output that to file
|
||||||
if (scheduler.nrStudents() == 1) { // otherwise too slow
|
if (scheduler.nrStudents() == 1) { // otherwise too slow
|
||||||
DecisionTreeFactor product = scheduler.product();
|
DecisionTreeFactor product =
|
||||||
|
*std::dynamic_pointer_cast<DecisionTreeFactor>(scheduler.product());
|
||||||
product.dot("scheduling-large", DefaultKeyFormatter, false);
|
product.dot("scheduling-large", DefaultKeyFormatter, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,8 @@ void runLargeExample() {
|
||||||
|
|
||||||
// Do brute force product and output that to file
|
// Do brute force product and output that to file
|
||||||
if (scheduler.nrStudents() == 1) { // otherwise too slow
|
if (scheduler.nrStudents() == 1) { // otherwise too slow
|
||||||
DecisionTreeFactor product = scheduler.product();
|
DecisionTreeFactor product =
|
||||||
|
*std::dynamic_pointer_cast<DecisionTreeFactor>(scheduler.product());
|
||||||
product.dot("scheduling-large", DefaultKeyFormatter, false);
|
product.dot("scheduling-large", DefaultKeyFormatter, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue