Skip to content

Commit

Permalink
support node nonlinear operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jalving committed Jan 31, 2024
1 parent e567ea6 commit aa6e4d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/optinode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ end

### OptiNode MOI Extension

function MOI.get(node::OptiNode, attr::MOI.UserDefinedFunction)
return MOI.get(graph_backend(node), attr)
end

# TODO: consider caching constraint types in graph backend versus using unique to filter
function MOI.get(node::OptiNode, attr::MOI.ListOfConstraintTypesPresent)
cons = graph_backend(node).element_constraints[node]
Expand Down

0 comments on commit aa6e4d7

Please sign in to comment.