Skip to content

Commit 500af1e

Browse files
authored
Merge pull request #7 from shuanghuabai/master
update due to change of order of argument in handle_set_group
2 parents 490f0e9 + e77126c commit 500af1e

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

local_optimisation/SOCP/portfolio_optimisation_using_socp.ipynb

Lines changed: 12 additions & 11 deletions
Large diffs are not rendered by default.

local_optimisation/SOCP/robust_lp.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
},
160160
{
161161
"cell_type": "code",
162-
"execution_count": 14,
162+
"execution_count": 2,
163163
"metadata": {},
164164
"outputs": [],
165165
"source": [
@@ -390,7 +390,7 @@
390390
},
391391
{
392392
"cell_type": "code",
393-
"execution_count": 11,
393+
"execution_count": 9,
394394
"metadata": {},
395395
"outputs": [
396396
{
@@ -464,7 +464,7 @@
464464
"# Set cone constraints\n",
465465
"i = 0\n",
466466
"while i<len(ctype):\n",
467-
" opt.handle_set_group(handle, ctype[i], group[i], 0)\n",
467+
" opt.handle_set_group(handle, ctype[i], 0, group[i])\n",
468468
" i += 1\n",
469469
"\n",
470470
"# Set options\n",
@@ -488,7 +488,7 @@
488488
},
489489
{
490490
"cell_type": "code",
491-
"execution_count": 12,
491+
"execution_count": 10,
492492
"metadata": {},
493493
"outputs": [
494494
{
@@ -498,7 +498,7 @@
498498
" 1.16762817e-01, 1.15110232e-10, 8.27684160e-02, 6.77790766e-02])"
499499
]
500500
},
501-
"execution_count": 12,
501+
"execution_count": 10,
502502
"metadata": {},
503503
"output_type": "execute_result"
504504
}
@@ -510,16 +510,16 @@
510510
},
511511
{
512512
"cell_type": "code",
513-
"execution_count": 13,
513+
"execution_count": 11,
514514
"metadata": {},
515515
"outputs": [
516516
{
517517
"data": {
518518
"text/plain": [
519-
"0.08505797359531908"
519+
"0.08505797359531912"
520520
]
521521
},
522-
"execution_count": 13,
522+
"execution_count": 11,
523523
"metadata": {},
524524
"output_type": "execute_result"
525525
}
@@ -560,21 +560,21 @@
560560
],
561561
"metadata": {
562562
"kernelspec": {
563-
"display_name": "Python 3",
563+
"display_name": "Python 2",
564564
"language": "python",
565-
"name": "python3"
565+
"name": "python2"
566566
},
567567
"language_info": {
568568
"codemirror_mode": {
569569
"name": "ipython",
570-
"version": 3
570+
"version": 2
571571
},
572572
"file_extension": ".py",
573573
"mimetype": "text/x-python",
574574
"name": "python",
575575
"nbconvert_exporter": "python",
576-
"pygments_lexer": "ipython3",
577-
"version": "3.7.3"
576+
"pygments_lexer": "ipython2",
577+
"version": "2.7.16"
578578
},
579579
"latex_envs": {
580580
"LaTeX_envs_menu_present": true,

0 commit comments

Comments
 (0)