File Exchange

image thumbnail

Hymod: A Software for Hybrid Microgrid Optimal Design

version (6.18 MB) by Semaria Ruiz
A Matlab tool for designing hybrid isolated microgrids.


Updated 20 Aug 2018

View License

At the National University of Colombia, we have developed a open-source Matlab tool called Hymod for designing hybrid isolated microgrids.
Hymod is an open source software that performs the design of hybrid isolated microgrids composed by Diesel, photovoltaic modules, wind turbines, batteries and Hydro-pumped storage, which also integrates electric vehicles (EVs) in two ways:
• (i) As additional loads, which are defined as Type 1 EVS.
• (ii) As additional storage systems allowing them to participate with the load commitment, which are defined as Type 2 EVS.

To operate, Hymod requires the previous installation of software Matlab R2015b or later versions, CVX( ) and Gurobi( ).

I hope that Hymod will be useful for you.

Cite As

Semaria Ruiz (2020). Hymod: A Software for Hybrid Microgrid Optimal Design (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Semaria Ruiz

Hello, you can see the following paper:

Dear/Dr.Semaria Ruiz Alvarez

I downloaded Hymod software from Matlab central file exchange and
downloaded the CVX software from web page:,
and executed the file cvx setup.m and set the path of the CVX download on
Matlab path options.
I got an academic license of CVX in the next link:
and downloaded from my e-mail the attached file cvx license.dat, and save it in the same folder of CVX.
At the Matlab command line, run cvx setup again, but add the full path to
my license file as an argument: cvx setup/path/cvx license.dat.
And activated the Gurobi solver.

when run file micr.m and uploaded xls files, some errors appeared
such as

error using cvx_solver (line 46)
Unknown, unusable, or missing solver: gurobi

Error in optim/optim_micr (line 68)
cvx_solver gurobi

Error in optim (line 55)
[obj.Nwt obj.Npv obj.Nbt obj.Vol obj.Pus obj.Pdg obj.Pbatc obj.Pbatd obj.Phpb obj.Phpt obj.Pdcev obj.Pcev obj.Pcevnd obj.fval
obj.LCOE obj.En_c obj.dif_c obj.Em] = optim_micr(obj);

Error in micr>pushbutton12_Callback (line 796)
xsol= optim(r_l, prj_p, wt, pv, dg, bt, hp, ev, EVd, stor);

Error in gui_mainfcn (line 95)

Error in micr (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in>@(hObject,eventdata)micr('pushbutton12_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback
please reply to me as fast as you can.

Semaria Ruiz

Mohammedi, you need the previous installation of CVX (which you can download from and Gurobi solver for CVX (following the instructions indicated in the user manual, which is contained in the zip file)

Undefined function or variable 'cvx_begin'.

Semaria Ruiz

Good morning, I send you the user manual and I notice you that a paper that explains the software architecture of Hymod will be published soon in the 2018 15th International Conference on Electrical Engineering, Computing Science and Automatic Control (CCE 2018), which I will send you soon.
You can find the user manual in the next link:

Hi, do you have the system flowchart or system model for your islanded microgrid?

Chao Lin

I want to know the algorithm of your soft, Can you tell me soon? thanks


This version includes default values for starting

New version with some errors corrections

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: CVXOPT Toolbox