-
Notifications
You must be signed in to change notification settings - Fork 1
/
Optimization_batch.m
43 lines (29 loc) · 1.11 KB
/
Optimization_batch.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% This file is created by Volkan Kumtepeli.
% it is the batch simulator for different cases.
% Date : 2018.12.17
% Update : 2020.05.01
clear all; close all; clc; %#ok<CLALL>
batchSettings = SimulationSettings.get_paperSettings_open; % Change this function for different batch simulations.
addSettings = [];
% Additional settings for test purposes:
addSettings.Threads = 0;
addSettings.noDays = 4/24;
addSettings.studyName = "paper_2020_07_05_test";
%addSettings.MIPGap = 5/100;
%-----------------------------
for i_batch = 1:length(batchSettings)
SimulSettings = simulationSettings(batchSettings(i_batch), addSettings);
% Data loading:
data_handling;
load_param;
load_param_calender;
def_functions;
numeric_definitions;
sdpvar_definitions;
run_optimization;
tempAllvariables = who;
tempAllvariables_str = string(tempAllvariables);
tempAllvariables(tempAllvariables_str=="i_batch"|tempAllvariables_str=="batchSettings" | tempAllvariables_str=="addSettings") = [];
clear(tempAllvariables{:});
yalmip('clear');
end