Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 18, 2024
1 parent 9719ae8 commit f7878b0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ std::unique_ptr<CumulationConstraint> cumulationConstraintFromVariable(const std
throw std::invalid_argument("Invalid cumulation constraint type");
}

char ConvertSign(const std::string& sign)
char ConvertSense(const std::string& sense)
{
if (sign == "greater")
if (sense == "greater")
{
return '>';
}
else if (sign == "less")
else if (sense == "less")
{
return '<';
}
Expand Down Expand Up @@ -151,7 +151,7 @@ void ShortTermStorageCumulation::add(int pays)
builder.updateHourWithinWeek(hour - 1);
constraintHelper->build(builder, index, storage);
}
builder.SetOperator(ConvertSign(constraint.operatorType)).build();
builder.SetOperator(ConvertSense(constraint.operatorType)).build();
}
}
}

0 comments on commit f7878b0

Please sign in to comment.