Preview

Modeling with GAMS: Part II

Satisfactory Essays
Open Document
Open Document
2346 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Modeling with GAMS: Part II
Modeling with GAMS: Part II
University of Chicago
Booth School of Business
Kipp Martin

February 17, 2010

1

List of Files portOptSet.gms portOptSetInclude.gms portOptSetTable.gms portOptData.dat portOptExcel.gms portOptData.xls (worksheet with data) maxCover.gams maxCover.dat maxCover.xls portOptControl.xlsm (control macro) clsGams.cls Outline
Motivation
Sets and Parameters
Separation of Model and Data
Interfacing GAMS with Excel
Another Example – Max Cover
References
Appendix – Vista

3

Motivation
Problem: How did we generate generate?
10.06*FS+17.64*IB+32.41*LG+32.36*LV+33.44*SG+24.56*SV = R1
13.12*FS+ 3.25*IB+18.71*LG+20.61*LV+19.40*SG+25.32*SV = R2
S13.47*FS+7.51*IB+33.28*LG+12.93*LV+3.85*SG-6.70*SV = R3
45.42*FS-1.33*IB+41.46*LG+7.06*LV+58.68*SG+5.43*SV = R4
-21.93*FS+7.36*IB-23.26*LG-5.37*LV-9.02*SG+17.31*SV = R5

By hand? What if I had 500 stocks and several thousand scenarios
(say daily returns rather than yearly returns)? Argh!!!

4

Motivation
In this module we are now going to combine:

Excel

VBA

GAMS

The first step is to rewrite our portfolio optimization model using sets and parameters.

5

Motivation
Our Goal:
GAMS

Excel
Data Input
Output

Excel
Control Macro

6

Motivation

Rather than write out the constraints “by hand” with all the numbers there, let’s write them in algebraic format:

OK, here we go!

7

Sets and Parameters t max

pi R i i=1 n

rji xj

= Ri ,

i = 1, . . . t

j=1

Ri

≥ ReqReti ,

i = 1, . . . t

j = 1, . . . , n indexes the set of funds i = 1, . . . , t indexes the set of scenarios
Ri , the return variable defined over the set of scenarios xj , the investment quantity variable over the set of funds rji , the return parameter defined over both the fund and scenario sets pi , the probability parameter defined over the set of scenarios
ReqReti , required return parameter defined over the set of

Sets and

You May Also Find These Documents Helpful

  • Good Essays

    Model Extended Response

    • 736 Words
    • 1 Page

    This is the beginning of a model response to the question below. Read it carefully, and then attempt to finish it.…

    • 736 Words
    • 1 Page
    Good Essays
  • Good Essays

    Brook Gladstone is an author who published the article “The Influencing Machines” in 2015. On the other hand she is also a media analyst and a host of NPR’s in the media. Additionally she did not write this article on her own, she had the help of Josh Neufeld. Gladstone did the writing while, Neufeld did the illustrations. It was collaboration between both people. The central thesis of Gladstone and Neufeld is that we get the media we should deserve’ it does not control us. The issue it addresses is that the outer darkness is being put into the minds of people, but it was originally from their own thoughts and believes (Cook). Gladstone and Neufeld used history…

    • 1115 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Model Questions

    • 659 Words
    • 3 Pages

    1.By faith who has called as a righteous man by God when he offered a better sacrifice?…

    • 659 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Gbm Informative Speech

    • 431 Words
    • 2 Pages

    I will be informing my audience about the basic knowledge of GBM, the severity of the disease, and the new technology being invented to liken the chances of survival for people who have this type of cancer. New forms of radiation therapy have increased the survival percentage of people with the more aggressive form of the pathology.…

    • 431 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    My Supervisory Model Paper

    • 3082 Words
    • 13 Pages

    In this paper you will experience my design on the subject of supervision – according to Merriam Webster (2014) supervision, is defined as “headship, oversight, care or guidance with and over staff in a program, unit or ward”. You and I will journey through the three supervisory roles that I would function in and will discuss my temperament and my style of leadership. You will also learn in what way I am most confident in motivating or exercising discipline with staff. I am motivated or guided by a very specific force regarding legal, ethical and even cultural concerns and we will explore that force and how it would play out in my everyday interactions of supervision. I am tremendously communal but realize that professionalism must play a part when I work with and serve under those in management and administration and I will talk about those aspects also.…

    • 3082 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    The Thomas Kilman Model

    • 185 Words
    • 1 Page

    The different types of conflicts that may arise within the team can be managed by using the Thomas Kilman Model which is designed to measure a person's behaviour in conflict situations, has two basic dimensions of behaviour (assertiveness and cooperativeness) identify five different modes for responding to conflict situations:…

    • 185 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    The Fims Plot

    • 195 Words
    • 1 Page

    The fim’s plot is about a family of Mohican Indians who are on the side of the British colonists, fighting against the French. The Mohican Indians are Chingachgook, who is the father, and his two sons, Uncas and half-white son Hawkeye. There is also a British army major with two daughters, Cora and Alice, involved. They are with the Mohicans. Cora and Hawkeye start to spend more time together, and end up falling in love. This is against the views of many of the colonists and Mohicans, because it is an interracial couple, which was not common back then. The Mohicans and British are fighting against the French and other Indians in the French Indian War. At one point the girls are kidnapped by the Hurons and French and it is not spoken of what…

    • 195 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Gbm Case Studies

    • 320 Words
    • 2 Pages

    Brain cancer and other nervous system cancer are the tenth leading cause of death in US. Although brain cancer in pediatrics is rare. However, the number of new cases are increasing (12.7%) aged <20 years [1].…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Armstrong M. (1977). Use of Biofeedback in the Management of Pain. 2nd National Conference on Cancer Nursing, Missouri: American Cancer Society…

    • 4477 Words
    • 18 Pages
    Powerful Essays
  • Better Essays

    Multifactorial Model

    • 2409 Words
    • 10 Pages

    The multifactorial model in health psychology is a leading paradigm that recognizes the multi-faceted nature of illnesses. It is not a clear-cut, simple case that a disease is caused by a singular factor. The fact is that decades if not over a century of modern research has led to the recognition that a host of factors, as well as their interactions, function in illness and health determination (Nevid & Rathus, p. 126).…

    • 2409 Words
    • 10 Pages
    Better Essays
  • Good Essays

    Objective Control Model

    • 1022 Words
    • 5 Pages

    Successful victory and survivability is based on the ability to adapt to different warfare forms and strategies. However, another critical variable/principle is the needs of a strong Civil-Military Relationship. For the military to be able to quickly adjust to the ever changing political goals/objectives, and to have the ability to adapt and change to different forms and strategies, their needs to be a healthy political and military relationship. First and foremost, the government and the military needs to trust each other. Huntington and Janowitz both wrote a great deal on civil-military theories. Agreeing on the purity of the Objective Control model, we are starting on a strong foundation for a flourishing civil-military relationship. Clausewitz…

    • 1022 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Sabm Model Analysis

    • 213 Words
    • 1 Page

    In Behavior Management through self-advocacy Ronen explains that all teachers deal with the struggles of controlling the behaviors in the classrooms. Ronen Sebag describes “classroom management as an essential aspect of a productive teaching and learning environment”. SABM model focuses on student self-determination and self-advocacy. Students who by in to the SABM model have an elevated success level. The focus on self-determination and self-advocacy helps student improve their self-understanding. They look at their strengths and weakness on a different level. The student center model allows the students to hone in on the things they do well and work on the things that need improvement. SABM is a 5 step process the weekly grade report, student…

    • 213 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    What are the similarities and differences between these theories? Look at the intersection of each row and column.…

    • 273 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    System Modeling

    • 28464 Words
    • 114 Pages

    2. This handbook is for guidance only. This handbook cannot be cited as a requirement.…

    • 28464 Words
    • 114 Pages
    Powerful Essays
  • Good Essays

    Capm Is a Model

    • 620 Words
    • 3 Pages

    CAPM is a model which enables investors to determine the expected return from a risky security. It observes the relationship between the risk of an asset (Mobil Oil) and its return. The model uses Beta as the main measure of risk. This model works under the following situations:…

    • 620 Words
    • 3 Pages
    Good Essays