port.gms : Simple Portfolio Model

Description

```This simple portfolio selection model examines
investment alternatives in the bond market. The selection
is constrained by rating and maturity considerations.
```

Small Model of Type : LP

Category : GAMS Model library

Main file : port.gms

``````\$title Simple Portfolio Model (PORT,SEQ=50)

\$onText
This simple portfolio selection model examines
investment alternatives in the bond market. The selection
is constrained by rating and maturity considerations.

CDC, IFPS/OPTIMIM - Users Manual, Control Data Corporation, Minneapolis, 1984.

Keywords: linear programming, portfolio optimization, investment planning, finance
\$offText

Set
b    'bonds'    / municip-a, municip-b, corporate, us-ser-e, us-ser-f /
g(b) 'grouping' / corporate, us-ser-e,  us-ser-f /;

Table ydat(b,*) 'yield data'
rating  maturity  yield  tax-rate
municip-a          2         9    4.3
municip-b          5         2    4.5
corporate          2        15    5.4        .5
us-ser-e           1         4    5.0        .5
us-ser-f           1         3    4.4        .5;

Variable
investment(b)
tinvest       'total investment'
return;

Positive Variable investment;

Equation
groupmin 'minimum investment in group g'
rdef     'rating definition'
mdef     'maturity definition'
idef     'total return definition'
tdef     'total investment definition';

groupmin.. sum(g, investment(g)) =g= 4;

rdef..     sum(b, ydat(b,"rating  ")*investment(b)) =l= 1.4*tinvest;

mdef..     sum(b, ydat(b,"maturity")*investment(b)) =l= 5.0*tinvest;

tdef..     tinvest =e= sum(b, investment(b));

idef..     return  =e= sum(b, ydat(b,"yield")/100*(1-ydat(b,"tax-rate"))*investment(b));

tinvest.up = 10;

Model port / all /;

solve port maximizing return using lp;
``````
GAMS Development Corp.
GAMS Software GmbH

General Information and Sales
U.S. (+1) 202 342-0180
Europe: (+49) 221 949-9170
{"ft_lang_label":"__label__en","ft_lang_prob":0.6272901,"math_prob":0.8810917,"size":1536,"snap":"2022-40-2023-06","text_gpt3_token_len":437,"char_repetition_ratio":0.14360313,"word_repetition_ratio":0.17258883,"special_character_ratio":0.27539062,"punctuation_ratio":0.21518987,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96724194,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-07T15:30:29Z\",\"WARC-Record-ID\":\"<urn:uuid:4c21bbee-f1a5-4e88-ba19-0486d817f7b9>\",\"Content-Length\":\"28683\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:73faa69c-03be-4644-890f-d5d5f15b2002>\",\"WARC-Concurrent-To\":\"<urn:uuid:828300b3-4299-439f-8b13-737606371b7a>\",\"WARC-IP-Address\":\"100.26.187.133\",\"WARC-Target-URI\":\"https://support.gams.com/39/gamslib_ml/libhtml/gamslib_port.html\",\"WARC-Payload-Digest\":\"sha1:6B2KXRD72QIU2Q4B5AQINS35L7LAFSYB\",\"WARC-Block-Digest\":\"sha1:DZQO365LUS4VWY34AT4A6L7CC75PV5RU\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030338213.55_warc_CC-MAIN-20221007143842-20221007173842-00325.warc.gz\"}"}