% This file was created by matlab2tikz v0.3.3.
% Copyright (c) 2008--2013, Nico Schlmer <nico.schloemer@gmail.com>
% All rights reserved.
% 
% 
% 

% defining custom colors
\definecolor{mycolor1}{rgb}{0,0.75,0.75}

\begin{tikzpicture}

\begin{axis}[%
width=6.01828521434821in,
height=4.74667979002625in,
unbounded coords=jump,
scale only axis,
xmin=-1,
xmax=1,
xlabel={Time-delay, $\theta$},
ymin=0,
ymax=50,
ylabel={Cost, $J$},
legend style={draw=black,fill=white,legend cell align=left}
]
\addplot [
color=blue,
solid
]
table[row sep=crcr]{
-0.9 1.15550043553321\\
-0.89 0.945171248344951\\
-0.88 0.974120019692383\\
-0.87 1.27666081902621\\
-0.86 0.876802510996933\\
-0.85 1.00117254523632\\
-0.84 1.05297833537762\\
-0.83 1.19988514876384\\
-0.82 1.31332146765437\\
-0.81 1.25412120816759\\
-0.8 1.04838836108394\\
-0.79 0.931051088058631\\
-0.78 1.24444727114522\\
-0.77 1.20206127946286\\
-0.76 1.1001853309071\\
-0.75 1.16044694300543\\
-0.74 0.997524158494732\\
-0.73 0.939667365845063\\
-0.72 1.15241962935604\\
-0.71 0.961745454971621\\
-0.7 1.05340806042646\\
-0.69 1.19936589142979\\
-0.68 1.01647975447106\\
-0.67 1.19347095316755\\
-0.66 0.98337176668248\\
-0.65 1.08185539530585\\
-0.64 1.22760087897111\\
-0.63 1.0802984550195\\
-0.62 1.21045548019147\\
-0.61 1.43275622298517\\
-0.6 1.02461815384849\\
-0.59 1.3324359774729\\
-0.58 1.15783329877343\\
-0.57 1.21146053379149\\
-0.56 1.10739542294916\\
-0.55 1.38341872401177\\
-0.54 1.41200082762582\\
-0.53 1.23572280334207\\
-0.52 1.21973603496725\\
-0.51 1.18895570227506\\
-0.5 1.2246438849418\\
-0.49 1.13729928280687\\
-0.48 1.37938231759033\\
-0.47 1.5099326582425\\
-0.46 1.58523965404131\\
-0.45 1.56360954516887\\
-0.44 1.73795284025286\\
-0.43 1.74147270366304\\
-0.42 1.54667228821564\\
-0.41 1.51881255619024\\
-0.4 1.33971341993876\\
-0.39 1.31614550444498\\
-0.38 1.43245091277067\\
-0.37 1.69975596837753\\
-0.36 1.96419235593347\\
-0.35 1.78440340963358\\
-0.34 1.54429769399808\\
-0.33 1.57918557883733\\
-0.32 1.55597909611832\\
-0.31 1.5695917800855\\
-0.3 1.58551192026601\\
-0.29 1.63042137045796\\
-0.28 1.72118426209556\\
-0.27 1.92265978419687\\
-0.26 1.95398992015392\\
-0.25 1.78266736488577\\
-0.24 1.8019383370976\\
-0.23 2.02798340892496\\
-0.22 1.76467474245126\\
-0.21 2.0162993224959\\
-0.2 1.86821776203476\\
-0.19 2.57958959750246\\
-0.18 2.49043455414836\\
-0.17 2.1674836747112\\
-0.16 2.11835106169703\\
-0.15 2.16983947814575\\
-0.14 2.29241622986938\\
-0.13 2.27518253941195\\
-0.12 2.44752214092611\\
-0.11 2.67617425862798\\
-0.1 2.75806378541602\\
-0.09 2.67465946748985\\
-0.08 3.24109260396775\\
-0.07 3.16772045397231\\
-0.0600000000000001 3.02759272641787\\
-0.05 3.0607025756289\\
-0.04 3.33231156326052\\
-0.03 3.48336392032696\\
-0.02 3.77065731973932\\
-0.01 3.79816961024916\\
0 3.77281628426455\\
0.01 4.2100647149643\\
0.02 4.53890762756443\\
0.03 4.83266082339907\\
0.04 5.11777257459332\\
0.05 5.38992953243692\\
0.0600000000000001 6.13287734961506\\
0.07 6.23807998890443\\
0.08 6.88879396507067\\
0.09 7.78041261261116\\
0.1 8.38189827890637\\
0.11 9.69259147825126\\
0.12 10.8692204334841\\
0.13 12.370555008115\\
0.14 14.6548097594146\\
0.15 17.080644189188\\
0.16 20.6847709723149\\
0.17 26.0385110492064\\
0.18 33.9725539152067\\
0.19 47.2785227753817\\
};
\addlegendentry{$\text{tau}_\text{c}\text{ = 0.5*theta}$};

\addplot [
color=green!50!black,
solid
]
table[row sep=crcr]{
-0.9 1.14265344798967\\
-0.89 1.14054740097522\\
-0.88 1.15864485398344\\
-0.87 1.15031227033389\\
-0.86 1.15153417547714\\
-0.85 1.15400112857189\\
-0.84 1.16501099469033\\
-0.83 1.17205710177754\\
-0.82 1.17905688077178\\
-0.81 1.17028487894335\\
-0.8 1.1766487875208\\
-0.79 1.18214780474214\\
-0.78 1.17678972151708\\
-0.77 1.22934133117516\\
-0.76 1.23075277993522\\
-0.75 1.23456423166188\\
-0.74 1.23551170454504\\
-0.73 1.21888549458717\\
-0.72 1.21314671866733\\
-0.71 1.19970052881219\\
-0.7 1.23477570814359\\
-0.69 1.2263472528545\\
-0.68 1.22770199640477\\
-0.67 1.23036295556233\\
-0.66 1.22920796229549\\
-0.65 1.24477994160203\\
-0.64 1.2353506378361\\
-0.63 1.28180177468929\\
-0.62 1.27361265458728\\
-0.61 1.24986177567022\\
-0.6 1.26014896946768\\
-0.59 1.25883321795583\\
-0.58 1.29470243334127\\
-0.57 1.30493801193347\\
-0.56 1.31046579613582\\
-0.55 1.28486782210728\\
-0.54 1.29057283968328\\
-0.53 1.28841224378612\\
-0.52 1.29781971190523\\
-0.51 1.36311930730172\\
-0.5 1.3713957751324\\
-0.49 1.37026167989734\\
-0.48 1.35308824290571\\
-0.47 1.32359834192751\\
-0.46 1.38132647197067\\
-0.45 1.38893841166701\\
-0.44 1.41340494163865\\
-0.43 1.41403563046104\\
-0.42 1.39310143063115\\
-0.41 1.41434909603874\\
-0.4 1.44070571431987\\
-0.39 1.43521974682367\\
-0.38 1.38872280626096\\
-0.37 1.45027156892637\\
-0.36 1.49907592572419\\
-0.35 1.49775126057925\\
-0.34 1.55494759189745\\
-0.33 1.55035110935095\\
-0.32 1.54167433474095\\
-0.31 1.53715309893688\\
-0.3 1.53529897839554\\
-0.29 1.4885244937718\\
-0.28 1.52391232037824\\
-0.27 1.54490951287846\\
-0.26 1.58865259904458\\
-0.25 1.6028415742136\\
-0.24 1.61165221591222\\
-0.23 1.62893660023722\\
-0.22 1.64221150301408\\
-0.21 1.60892132929475\\
-0.2 1.63007310499127\\
-0.19 1.69565281703128\\
-0.18 1.73884787958556\\
-0.17 1.63507502236269\\
-0.16 1.66643603981221\\
-0.15 1.69017643850094\\
-0.14 1.71558243480348\\
-0.13 1.74779004467238\\
-0.12 1.68837872993848\\
-0.11 1.74465598471472\\
-0.1 1.7758252294022\\
-0.09 1.78042701074713\\
-0.08 1.72692946085377\\
-0.07 1.8052140977608\\
-0.0600000000000001 1.76584177578747\\
-0.05 1.83648276336251\\
-0.04 1.83556507053076\\
-0.03 1.8387897049247\\
-0.02 1.83487399638877\\
-0.01 1.84631515464021\\
0 1.8636731074681\\
0.01 1.88677230139283\\
0.02 1.92957006392485\\
0.03 1.92201821026288\\
0.04 1.94656397660049\\
0.05 1.98059615115088\\
0.0600000000000001 1.97909445549118\\
0.07 1.97555936229362\\
0.08 2.01049665393202\\
0.09 2.07964060571595\\
0.1 2.02759388275414\\
0.11 2.0497780357691\\
0.12 2.10157591246225\\
0.13 2.09701494139638\\
0.14 2.14495832730746\\
0.15 2.18227123694681\\
0.16 2.14422026113364\\
0.17 2.1842423272466\\
0.18 2.20888431306568\\
0.19 2.2458953277713\\
0.2 2.25451043709967\\
0.21 2.28636193828675\\
0.22 2.32143335429139\\
0.23 2.38196058213451\\
0.24 2.41485938379308\\
0.25 2.42459900515819\\
0.26 2.50049655340714\\
0.27 2.51196125430003\\
0.28 2.62591088957154\\
0.29 2.57836242388147\\
0.3 2.67529942267894\\
0.31 2.66583686374447\\
0.32 2.7767536441571\\
0.33 2.75547673880718\\
0.34 2.84276443473567\\
0.35 2.88636695646249\\
0.36 2.92781571206254\\
0.37 2.96378033428683\\
0.38 3.06467225249055\\
0.39 3.08732358259718\\
0.4 3.18493181774842\\
0.41 3.25245920307147\\
0.42 3.32283737155449\\
0.43 3.39436200967603\\
0.44 3.46738439058327\\
0.45 3.53954078224651\\
0.46 3.61751607300792\\
0.47 3.68204533519696\\
0.48 3.75655692387541\\
0.49 3.84316062743405\\
0.5 3.95622486017747\\
0.51 4.03677941071679\\
0.52 4.18019691384999\\
0.53 4.26795128775177\\
0.54 4.36577348068841\\
0.55 4.49299374423994\\
0.56 4.60818879251199\\
0.57 4.77307066158992\\
0.58 4.89401433037982\\
0.59 5.07836153753245\\
0.6 5.22892267427381\\
0.61 5.37785142420481\\
0.62 5.55539252760192\\
0.63 5.75010487382693\\
0.64 5.94787653104905\\
0.65 6.17620618473618\\
0.66 6.35779110842961\\
0.67 6.67946430683225\\
0.68 6.89604003498513\\
0.69 7.15998970969091\\
0.7 7.45974140911171\\
0.71 7.79128501540745\\
0.72 8.13250611078846\\
0.73 8.52586693965034\\
0.74 8.93958039953681\\
0.75 9.43086415980429\\
0.76 9.93074093717202\\
0.77 10.5000635613265\\
0.78 11.1299631275773\\
0.79 11.8376191271023\\
0.8 12.6516497325297\\
0.81 13.5561949742521\\
0.82 14.6128286261425\\
0.83 15.7656646409214\\
0.84 17.1413368320249\\
0.85 18.7465524620131\\
0.86 20.6187464500787\\
0.87 22.8302825823267\\
0.88 25.4561198317129\\
0.89 28.5985747397741\\
0.9 32.3276101774728\\
};
\addlegendentry{$\text{tau}_\text{c}\text{ = theta}$};

\addplot [
color=red,
solid
]
table[row sep=crcr]{
-0.9 1.57554826398818\\
-0.89 1.57480603070998\\
-0.88 1.56924910705799\\
-0.87 1.56869616704948\\
-0.86 1.57083425939163\\
-0.85 1.57243168271824\\
-0.84 1.5804731200287\\
-0.83 1.57343867636516\\
-0.82 1.57030029593004\\
-0.81 1.5695985427945\\
-0.8 1.58367253847433\\
-0.79 1.59111777037589\\
-0.78 1.58448656920906\\
-0.77 1.59708244706063\\
-0.76 1.57323992638163\\
-0.75 1.57463000057131\\
-0.74 1.57620370007583\\
-0.73 1.58676997596763\\
-0.72 1.58322680162012\\
-0.71 1.59521199592458\\
-0.7 1.60694132250593\\
-0.69 1.61907548813201\\
-0.68 1.60401410484139\\
-0.67 1.61379392891069\\
-0.66 1.59617089966031\\
-0.65 1.61541893545577\\
-0.64 1.62182460975614\\
-0.63 1.62750188647517\\
-0.62 1.6289809305895\\
-0.61 1.62194613303361\\
-0.6 1.63472458145409\\
-0.59 1.64112666705156\\
-0.58 1.63940742190239\\
-0.57 1.62985488388959\\
-0.56 1.64537570881571\\
-0.55 1.64514535901117\\
-0.54 1.62894393854238\\
-0.53 1.6524646327773\\
-0.52 1.66192191464111\\
-0.51 1.66247272308894\\
-0.5 1.65997010812574\\
-0.49 1.65564319188759\\
-0.48 1.65686266642575\\
-0.47 1.67028468380059\\
-0.46 1.68108288550279\\
-0.45 1.69112995283736\\
-0.44 1.69246073982269\\
-0.43 1.68774671066572\\
-0.42 1.69197903345066\\
-0.41 1.69045365566823\\
-0.4 1.70915481067676\\
-0.39 1.70654657505787\\
-0.38 1.70259712516902\\
-0.37 1.70959216878852\\
-0.36 1.72760008803064\\
-0.35 1.73837665130379\\
-0.34 1.74294998967849\\
-0.33 1.74418135248126\\
-0.32 1.74375096018305\\
-0.31 1.74206014837099\\
-0.3 1.75097762724778\\
-0.29 1.75154186289586\\
-0.28 1.75355916176345\\
-0.27 1.76548014093784\\
-0.26 1.7923780442878\\
-0.25 1.79226335512149\\
-0.24 1.7911452788717\\
-0.23 1.78932230054394\\
-0.22 1.7993064127472\\
-0.21 1.79735387850693\\
-0.2 1.80793132045435\\
-0.19 1.83739850434602\\
-0.18 1.81732070030688\\
-0.17 1.82122470177001\\
-0.16 1.8263426282925\\
-0.15 1.84508521968253\\
-0.14 1.8792149161762\\
-0.13 1.86029700332899\\
-0.12 1.85815200504711\\
-0.11 1.86111772444113\\
-0.1 1.90487471686766\\
-0.09 1.88725955072664\\
-0.08 1.89155632317501\\
-0.07 1.9152737764781\\
-0.0600000000000001 1.91040914960704\\
-0.05 1.9246857542892\\
-0.04 1.93672740877675\\
-0.03 1.9456907736458\\
-0.02 1.95835424398071\\
-0.01 1.96683210375468\\
0 1.9611815000158\\
0.01 1.98238231410169\\
0.02 1.98804406962699\\
0.03 1.99891292444066\\
0.04 2.00221231410696\\
0.05 2.01833091928898\\
0.0600000000000001 2.0239892229558\\
0.07 2.01754081286206\\
0.08 2.04372417537627\\
0.09 2.04303398233225\\
0.1 2.03359175749264\\
0.11 2.07747085105283\\
0.12 2.09277705578658\\
0.13 2.06606895139622\\
0.14 2.08346068363044\\
0.15 2.08934918797858\\
0.16 2.13060352049944\\
0.17 2.13864281389249\\
0.18 2.15659290083598\\
0.19 2.12515575458614\\
0.2 2.15777240504728\\
0.21 2.15882271938827\\
0.22 2.16255523788968\\
0.23 2.18544149520915\\
0.24 2.18143152539279\\
0.25 2.19383598384912\\
0.26 2.21448661814245\\
0.27 2.2252706577426\\
0.28 2.23299979232434\\
0.29 2.24312993127157\\
0.3 2.26078887121097\\
0.31 2.26750067149505\\
0.32 2.28598291743165\\
0.33 2.29315831752278\\
0.34 2.31262007449988\\
0.35 2.32650032629777\\
0.36 2.33973125885027\\
0.37 2.35894689147516\\
0.38 2.36276461675589\\
0.39 2.37716709200795\\
0.4 2.4104201563235\\
0.41 2.42470318799383\\
0.42 2.43608388667182\\
0.43 2.4541385174792\\
0.44 2.47468735237211\\
0.45 2.49617152798253\\
0.46 2.52020199134125\\
0.47 2.54502185338925\\
0.48 2.53261885768191\\
0.49 2.55338386772589\\
0.5 2.57455242684456\\
0.51 2.60342822497054\\
0.52 2.62708374050719\\
0.53 2.64863096664086\\
0.54 2.66561814651588\\
0.55 2.70009322445623\\
0.56 2.72466934821579\\
0.57 2.74474433714499\\
0.58 2.76802571949372\\
0.59 2.79301956904268\\
0.6 2.8278513767217\\
0.61 2.85332887812152\\
0.62 2.88241138373371\\
0.63 2.91395680722745\\
0.64 2.95307571964977\\
0.65 2.9633542516221\\
0.66 2.99069161483818\\
0.67 3.01384209160898\\
0.68 3.05745480355019\\
0.69 3.06962655258903\\
0.7 3.11583660571477\\
0.71 3.14601597854752\\
0.72 3.17955449593552\\
0.73 3.21234328628832\\
0.74 3.25075620845721\\
0.75 3.28969390253852\\
0.76 3.32988857086248\\
0.77 3.35719287971712\\
0.78 3.40601887245151\\
0.79 3.4478896730796\\
0.8 3.49139204327452\\
0.81 3.5354736152716\\
0.82 3.58034686975372\\
0.83 3.62441531463703\\
0.84 3.65424298804309\\
0.85 3.70141445066973\\
0.86 3.75722508464501\\
0.87 3.79682289135123\\
0.88 3.84553319308464\\
0.89 3.90493428186188\\
0.9 3.96061090014783\\
};
\addlegendentry{$\text{tau}_\text{c}\text{ = 1.5*theta}$};

\addplot [
color=mycolor1,
solid
]
table[row sep=crcr]{
-0.9 1.95476546339379\\
-0.89 1.95576992132297\\
-0.88 1.95426980880491\\
-0.87 1.9578427967124\\
-0.86 1.96166690445798\\
-0.85 1.9611926311991\\
-0.84 1.96422193853802\\
-0.83 1.9665146714752\\
-0.82 1.96799736087479\\
-0.81 1.95243338199186\\
-0.8 1.96736325375751\\
-0.79 1.97062245391318\\
-0.78 1.97003015724392\\
-0.77 1.96286073369862\\
-0.76 1.97027776107098\\
-0.75 1.97442296878129\\
-0.74 1.97419962707222\\
-0.73 1.97442047129636\\
-0.72 1.98031979897826\\
-0.71 1.97417765329892\\
-0.7 1.98622738378016\\
-0.69 1.99236132398446\\
-0.68 1.98524008149053\\
-0.67 1.98814989970033\\
-0.66 1.99107092900544\\
-0.65 1.97915030070512\\
-0.64 1.99795366567759\\
-0.63 2.00844855087215\\
-0.62 2.00558547287492\\
-0.61 2.0080747032885\\
-0.6 2.010216219612\\
-0.59 2.01000229542108\\
-0.58 2.02049745592208\\
-0.57 2.02457580025303\\
-0.56 2.0235820139997\\
-0.55 2.02534451703295\\
-0.54 2.02965003136101\\
-0.53 2.0213273313078\\
-0.52 2.02457539214993\\
-0.51 2.02976118621109\\
-0.5 2.02729326274696\\
-0.49 2.04288725272486\\
-0.48 2.04158638244969\\
-0.47 2.04278494856735\\
-0.46 2.04191216656347\\
-0.45 2.0399001049055\\
-0.44 2.05893766707699\\
-0.43 2.06315880455391\\
-0.42 2.06694817037675\\
-0.41 2.07003339192282\\
-0.4 2.06963305374699\\
-0.39 2.06431371059594\\
-0.38 2.06654106689521\\
-0.37 2.06684429176254\\
-0.36 2.07717305648992\\
-0.35 2.08365417092823\\
-0.34 2.08154300440711\\
-0.33 2.09270024932138\\
-0.32 2.08614244205915\\
-0.31 2.0919977790563\\
-0.3 2.09912078934645\\
-0.29 2.10530193628355\\
-0.28 2.1128781168174\\
-0.27 2.12057869652081\\
-0.26 2.13116733515854\\
-0.25 2.13177664198183\\
-0.24 2.13086197175466\\
-0.23 2.12977046636882\\
-0.22 2.14675702696191\\
-0.21 2.16063757822906\\
-0.2 2.15653225477039\\
-0.19 2.15094168340139\\
-0.18 2.15148875988001\\
-0.17 2.15691424229355\\
-0.16 2.16537568575421\\
-0.15 2.172089397398\\
-0.14 2.18083866660386\\
-0.13 2.17928319190846\\
-0.12 2.18136929960269\\
-0.11 2.18297918947837\\
-0.1 2.19807781908482\\
-0.09 2.19814776937836\\
-0.08 2.20087370623135\\
-0.07 2.21431270146734\\
-0.0600000000000001 2.21500526617873\\
-0.05 2.22275926550934\\
-0.04 2.23101988315081\\
-0.03 2.23492964996064\\
-0.02 2.24163877987314\\
-0.01 2.24716150866282\\
0 2.24565408711242\\
0.01 2.25790519218294\\
0.02 2.26205296006687\\
0.03 2.26887367991709\\
0.04 2.27467328963754\\
0.05 2.28110612146915\\
0.0600000000000001 2.28881238228561\\
0.07 2.28718205977789\\
0.08 2.30023702034263\\
0.09 2.30489582945315\\
0.1 2.30385821327073\\
0.11 2.32076934781616\\
0.12 2.33488403925375\\
0.13 2.32311209101449\\
0.14 2.33470997652028\\
0.15 2.33708807640121\\
0.16 2.36280844686851\\
0.17 2.36475824430429\\
0.18 2.37509426049995\\
0.19 2.36291091716035\\
0.2 2.38149945685525\\
0.21 2.37913798930642\\
0.22 2.38962700245366\\
0.23 2.4143027257802\\
0.24 2.41533592854014\\
0.25 2.413202125595\\
0.26 2.41342397762038\\
0.27 2.42228857253934\\
0.28 2.43141494598954\\
0.29 2.4440953067115\\
0.3 2.45472110489014\\
0.31 2.4664002185919\\
0.32 2.47188892489063\\
0.33 2.47787051636233\\
0.34 2.48398696084039\\
0.35 2.49120991654456\\
0.36 2.50154659260235\\
0.37 2.50747398293774\\
0.38 2.51531530467598\\
0.39 2.51843501672254\\
0.4 2.52929340796015\\
0.41 2.53535157697415\\
0.42 2.54502581108932\\
0.43 2.552883812583\\
0.44 2.56440131343482\\
0.45 2.57692958737056\\
0.46 2.58868711426843\\
0.47 2.59502408225424\\
0.48 2.60648191841074\\
0.49 2.60804012502306\\
0.5 2.62349075999059\\
0.51 2.6430157462413\\
0.52 2.64862992597098\\
0.53 2.66013713875951\\
0.54 2.67166358753107\\
0.55 2.68274852963716\\
0.56 2.69305783889178\\
0.57 2.70187760976999\\
0.58 2.70989820842792\\
0.59 2.72007853743107\\
0.6 2.72977775478323\\
0.61 2.73727505286362\\
0.62 2.74576379171625\\
0.63 2.75679085265328\\
0.64 2.76670582572907\\
0.65 2.77615574190509\\
0.66 2.79214368352473\\
0.67 2.80875354013198\\
0.68 2.8134145592634\\
0.69 2.82915047885235\\
0.7 2.84160915443357\\
0.71 2.84985963465045\\
0.72 2.86394382720065\\
0.73 2.88038079778516\\
0.74 2.89614600293789\\
0.75 2.91336812006016\\
0.76 2.9314423536312\\
0.77 2.94995665336183\\
0.78 2.96894733574629\\
0.79 2.97797109125098\\
0.8 2.99199571552871\\
0.81 3.00771326889053\\
0.82 3.02991834883656\\
0.83 3.04633753550819\\
0.84 3.06334079339377\\
0.85 3.08171339130091\\
0.86 3.10379544970776\\
0.87 3.12422891435681\\
0.88 3.14182934714435\\
0.89 3.16390124746055\\
0.9 3.18375059213375\\
};
\addlegendentry{$\text{tau}_\text{c}\text{ = 2*theta}$};

\end{axis}
\end{tikzpicture}%