cOPT/1.0 — Weighted Maximization Improved¶
| Type: | package |
|---|---|
| State: | under development and/or testing |
| Servers: | vm2, vm1 |
About¶
This package provides tools to improve results previously obtained by (one-dimenional) weighted maximization.
sDL structure¶
The package has a predefined combination of SAVE-FILE and CODE blocks.
Example for command “copt_Opt”:
//%OPS RUNSEQ=SAVE-FILE5 SAVE-FILE4 SAVE-FILE3 SAVE-FILE2 SAVE-FILE1 CODE
//%SCOPE Calculate optimal percentages
#define C1min 0.10
#define C1max 0.80
#define C2min 0.10
#define C2max 0.80
#define C3min 0.10
#define C3max 0.80
#define C4min 0.10
#define C4max 0.80
#define Cmarg 0.20
BEGIN-SAVE-FILE4 [|cOPT/cfgs/defs1.cfg]
domains:ALL
years:2018,2019,2020
END-SAVE-FILE4
BEGIN-SAVE-FILE3 [|cOPT/cfgs/scale1.cfg]
0:Level1
20:Level2
50:Level3
80:Level4
END-SAVE-FILE3
BEGIN-SAVE-FILE2 [|cOPT/cfgs/scn1.cfg]
## "SID","RULE","NVARS","P_ID","P_PERC","P_VALS","P_MIN","L_REST","MINS","MAXS","PMARG"
SCN0;;4;1;6;2;-1;R1;C1min,C2min,C3min,C4min;C1max,C2max,C3max,C4max;0.00,0.00,0.00,0.00
SCN1;;4;1;6;2;-1;R1;C1min,C2min,C3min,C4min;C1max,C2max,C3max,C4max;Cmarg,Cmarg,Cmarg,Cmarg
SCN2;;4;1;6;2;-1;R2:2,0.1;0.00,0.00,0.00,0.00;C1max,C2max,C3max,C4max;1.00,1.00,1.00,1.00
SCN3;max:SCN0,SCN1;4;1;6;2;-1;;;;
END-SAVE-FILE2
BEGIN-SAVE-FILE1 [|cOPT/opt/try01.cfg]
## '?' domain, '%' years; list of scenarios
test%?.csv;SCN2,SCN3;;;;;;
END-SAVE-FILE1
BEGIN-CODE [ cOPT/1.0 ]
copt_Opt("defs1.cfg", "scn1.cfg", "try01.cfg", SCALE="scale1.cfg", EXPLAIN=TRUE, PLOT=TRUE, TLEVEL=5.0)
END-CODE
Commented lines, in the CODE body text, start with “##”.
Namespaces and commands¶
The standard “core” namespace is available.
Folders¶
The package folder structure is the following:
sDLroot/cOPT/
|-- cfgs/ -- configuration folder where configuration (defs/scn/scale) are read/written
|-- data/ -- prepared input CSV data
|-- opt/ -- output logs, images and data files
People Involved¶
- Main developer: Eugenio Rocha (UA/PTR)
Change Log¶
Version 1.0
2019-01-22: complete redesign of code with several feature improvements (e.g. scenarios)
Version 0.9
2018-07-25: added to sDL
(Documentation updated on 2019-01-23 22:25)