Skip to content

Commit

Permalink
Fix missing variables from objective function in NRA
Browse files Browse the repository at this point in the history
  • Loading branch information
paultristanwagner committed Jul 15, 2024
1 parent db6cce8 commit c85c048
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public TheoryResult<MultivariatePolynomialConstraint> solve() {
List<String> variableOrdering = null;
String freshVariableName = null;
if (objective != null) {
variablesSet.addAll(objective.getObjective().variables);

freshVariableName = freshVariableName(variablesSet);
MultivariatePolynomial freshVariable = variable(freshVariableName);
MultivariatePolynomialConstraint helper = MultivariatePolynomialConstraint.equals(freshVariable, objective.getObjective());
Expand Down

0 comments on commit c85c048

Please sign in to comment.