Skip to content

Commit 2b1e1f4

Browse files
James CraigJames Craig
authored andcommitted
proper condition order in Demand opt
1 parent 851e42f commit 2b1e1f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DemandOptimization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,7 @@ void CDemandOptimizer::UpdateWorkflowVariables(const time_struct &tt,const optSt
11631163
op_is_active=CheckOpRegimeConditions(_pWorkflowVars[i]->pOperRegimes[k],tt, Options);
11641164
if (op_is_active){
11651165
active_regime=k;
1166+
break;
11661167
}
11671168
}
11681169
if (active_regime!=DOESNT_EXIST){

0 commit comments

Comments
 (0)