Skip to content

Commit cd8c6ae

Browse files
committed
apply patch
1 parent e7a4c94 commit cd8c6ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyomo/contrib/appsi/cmodel/src/expression.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,8 @@ int build_expression_tree(py::handle pyomo_expr,
17891789

17901790
if (expr_types.expr_type_map[py::type::of(pyomo_expr)].cast<ExprType>() ==
17911791
named_expr)
1792-
pyomo_expr = pyomo_expr.attr("expr");
1792+
return build_expression_tree(pyomo_expr.attr("expr"), appsi_expr, var_map,
1793+
param_map, expr_types);
17931794

17941795
if (appsi_expr->is_leaf()) {
17951796
;

0 commit comments

Comments
 (0)