74 adqPatchParams_(adqPatchParams),
75 variableManager_(p->CorrespondanceVarNativesVarOptim,
76 p->NumeroDeVariableStockFinal,
77 p->NumeroDeVariableDeTrancheDeStock,
78 p->NombreDePasDeTempsPourUneOptimisation),
82 belowThisThresholdSetToZero = std::min(temp, 0.1);
90 inline void setHour(
int hour)
95 void run(uint week, uint year);
98 void calculateCsrParameters();
100 void buildProblemVariables();
101 void setVariableBounds();
102 void buildProblemConstraintsLHS();
103 void buildProblemConstraintsRHS();
104 void setProblemCost();
105 void solveProblem(uint week,
int year);
106 void allocateProblem();
109 void constructVariableENS();
110 void constructVariableSpilledEnergy();
111 void constructVariableFlows();
114 void setBoundsOnENS();
115 void setBoundsOnSpilledEnergy();
116 void setBoundsOnFlows();
119 void setRHSvalueOnFlows();
120 void setRHSnodeBalanceValue();
121 void setRHSbindingConstraintsValue();
124 void setQuadraticCost();
125 void setLinearCost();
129 double belowThisThresholdSetToZero;
130 std::map<int, int> numberOfConstraintCsrAreaBalance;
131 std::set<int> ensVariablesInsideAdqPatch;
132 std::set<int> varToBeSetToZeroIfBelowThreshold;
141 std::map<int, int> numberOfConstraintCsrEns;
142 std::map<int, int> numberOfConstraintCsrFlowDissociation;
143 std::map<int, int> numberOfConstraintCsrHourlyBinding;
146 std::map<int, double> rhsAreaBalanceValues;
149 std::map<int, LinkVariable> linkInsideAdqPatch;