Skip to content

Commit c9812db

Browse files
committed
updated
1 parent 1d3cfdd commit c9812db

File tree

5 files changed

+272
-455
lines changed

5 files changed

+272
-455
lines changed

examples/House/House_1_week.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
}
173173
},
174174
"timesteps" : "./time_series/1_week_Manual.txt",
175-
"years" : [2015, 2020, 2025, 2030, 2035, 2040, 2045, 2050, 2055, 2060],
175+
"years" : [2015, 2030],
176176
"carriers": {
177177
"Dummy": {},
178178
"Vehicles_Propulsion": {
@@ -186,7 +186,7 @@
186186
"Import_Electricity": {
187187
"carrier_in": "Dummy",
188188
"carrier_out": "Electricity",
189-
"operational_cost_energy": 0.50,
189+
"operational_cost_energy": 0.60,
190190
"process_color": "lightcyan",
191191
"process_order": 1
192192
},

examples/House/House_1_week_2030.json

Lines changed: 0 additions & 233 deletions
This file was deleted.

src/sensitivity/PALM.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ function run_PALM(setting::Setting)
207207
# set_attribute(model, "DualReductions", 0)
208208
optimize!(model)
209209
@info "termination_status (find feasible primal and dual): $(termination_status(model))"
210-
210+
if (obj_value - objective_value(model)) < setting.min_stationary_change
211+
@info "Objective improvement is below the threshold."
212+
break
213+
end
211214
# check for feasibility
212215
if termination_status(model) == MOI.INFEASIBLE_OR_UNBOUNDED || termination_status(model) == MOI.INFEASIBLE
213216
@info "Infeasible Solution."

0 commit comments

Comments
 (0)