Skip to content

Commit e137c47

Browse files
James CraigJames Craig
authored andcommitted
v527 - return flow penalty weights
bug fix to ensure return flow minimization is similarly penalized to demand flow - fixes scaling issue.
1 parent 64a802e commit e137c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DemandOptimization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ void CDemandOptimizer::SolveManagementProblem(CModel *pModel, const optStruct &O
15691569
if (_pDemands[d]->HasReturnFlow())
15701570
{
15711571
col_ind[i]=GetDVColumnInd(DV_RETURN,r);
1572-
row_val[i]=-1.0;
1572+
row_val[i]=-_pDemands[d]->GetPenalty()*0.95;
15731573
i++;
15741574
r++;
15751575
}

0 commit comments

Comments
 (0)