Skip to content

Commit

Permalink
apply patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Mar 7, 2024
1 parent 6a9a694 commit 50650ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyomo/contrib/appsi/cmodel/src/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,8 @@ int build_expression_tree(py::handle pyomo_expr,

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

if (appsi_expr->is_leaf()) {
;
Expand Down

0 comments on commit 50650ec

Please sign in to comment.