Skip to content

Commit

Permalink
createResidualExp: added heuristic for a-b=0 or b-a=0
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23492 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Nov 20, 2014
1 parent 20ffbea commit 4ebd209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Expression.mo
Expand Up @@ -11279,7 +11279,7 @@ algorithm
//explst = listAppend(explst, explst1);
res2 = makeSimplifySum(explst1);
res2 = expMul(res2,e1);
res = expSub(res1, res2);
res = if isConst(res1) or (listLength(explst1) + 1) > listLength(explst) then expSub(res2, res1) else expSub(res1, res2); //heuristic
(res, _) = ExpressionSimplify.simplify(res);
then
res;
Expand Down

0 comments on commit 4ebd209

Please sign in to comment.