copt_Opt — main optimization algorithm

Type:command
Package:cOPT/1.0 — Weighted Maximization Improved
Namespace:&core

Description

This is the function which improves previous optimizations.

Usage

copt_Opt(configName, OptionalCmds)
ConfigName
TEach line in the “ConfigName” file must be of the form “P1;P2;P3;P4;P5;P6;P7;other_options” where:

* P1 - (example: “test01?.csv”) - is the filename pattern of the data input, with “?” being replaced by the SECTOR abbreviation (see cOpt.cfg).

* P2 - (example: “2”) - is the number of variables

* P3 - (value: “1.00”) - value of the sum of weights

* P4 - (values: “0.00,0.00”) - list of minimum bounds for each weight

* P5 - (values: “1.00,1.00”) - list of maximum bounds for each weight

* P6 - (values: “0.20,0.10”) - list of bounds defined by margins percentages from the given percentages (overwrite P$ and P5 if P6 is not zero)

* P7 - (values: “0.10,0.10”) - list of bounds defined by margins percentages from the given values
OptionalCmds
The set of optional commands are:

* MET1 - (default: “lp”) - method use in first approach

* MET2 - (default: “branch-bound”) - method used in second approach

* PLOT - (default: FALSE) - generate plots

* REWRITE - (default: TRUE) - rewrite output files if they already exist

* SHOWI - (default: FALSE) - dump input data

Examples

A sDL file example is:

#include "eff_config.h"

BEGIN-SAVE-FILE [| rDATA/dea-dt/All.cfg ]
cl1-%?.csv;_YEARS_;?;fdea~nE+nK+nLAB+nINV+nELE+nFOFUEL+nEP & nCO2c+nPV+nVA ~ nE+nK+nLAB+nINV+nELE+nFOFUEL+nEP § nCO2c+nPV ~ nE+nK+nLAB+nINV+nEP | row_th=2,thN=3,effType="Farrell";
cl2-%?.csv;_YEARS_;?;fdea~nE+nK+nLAB+nINV+nELE+nFOFUEL+nEP & nCO2c+nPV+nVA ~ nE+nK+nLAB+nINV+nELE+nFOFUEL+nEP § nCO2c+nPV ~ nE+nK+nLAB+nINV+nEP | row_th=2,thN=3,effType="Farrell";
END-SAVE-FILE

BEGIN-CODE [ rDATA/1.3 ]
rdata_dea("All.cfg", force=TRUE, DEA="mea", DEA_RTS="crs", PROC_CLUSTERS=FALSE, EFFMinMax=FALSE)
END-CODE