Navigator

  • Basic model
    • cvx code
    • yalmip code
  • A simple QP with inequalities constraints
    • cvx code
    • yalmip code
  • Reference

Basic model

LMIs and SDPs with one variable. The generalized eigenvalues of a matrix pair (A,B)(A, B)(A,B), where A,B∈SnA, B\in\mathcal{S}^nA,B∈Sn, are defined as the roots of the polynomial det⁡(λB−A)\det(\lambda B-A)det(λB−A).
Suppose BBB is nonsingular, and that AAA and BBB can be simltaneously diagonalized by a congruence, i.e., there exists a nonsingular, and that AAA and BBB can simultaneously diagonalized by a congruence, i.e, there exists a nonsingular R∈Rn×nR\in\mathbb{R}^{n\times n}R∈Rn×n such that
RTAR=diag(a)RTBR=diag(b)R^TAR=diag(a)\\ R^TBR=diag(b) RTAR=diag(a)RTBR=diag(b)
where a,b∈Rna, b\in\mathbb{R}^na,b∈Rn.
Moreover, a sufficient condition for this to hold is that there exists t1,t2t_1, t_2t1​,t2​ such that t1A+t2B≻0t_1A+t_2B\succ 0t1​A+t2​B≻0.

Try to find the optimal ttt that would maximize c∗tc*tc∗t while A−t∗BA-t*BA−t∗B is still P.S.D, we could solve the following SDP:
min⁡c∗ts.t.tB≺A\min c*t\\ s.t.\quad tB\prec A minc∗ts.t.tB≺A

cvx code

%% generate input data
rng(1);
n = 4;
A = randn(n); A = 0.5*(A'+A);
B = randn(n); B = B'*B;
c = -1;%% cvx
cvx_begin sdpvariable tminimize c*tt*B<=A;
cvx_enddisp('the optimal t obtained is');
disp(t);

yalmip code

%% yalmip
t = sdpvar;
F = [t*B<=A];
obj = c*t;
optimize(F, obj);disp('the optimal t obtained is');
disp(value(t));

A simple QP with inequalities constraints

Prove that x∗=(1,1/2,−1)x^*=(1, 1/2, -1)x∗=(1,1/2,−1) is optimal for the optimization problem
min⁡(1/2)xTPx+qTx+rs.t.−1≤xi≤1,i=1,2,3\min (1/2)x^TPx+q^Tx+r\\ s.t.\quad -1\leq x_i\leq 1, i=1,2,3 min(1/2)xTPx+qTx+rs.t.−1≤xi​≤1,i=1,2,3
where
P=[1312−212176−2612]q=[−22.0−14.513.0]r=1P=\left[ \begin{matrix} 13 & 12 & -2\\ 12 & 17 & 6\\ -2 & 6 & 12 \end{matrix} \right]\quad q=\left[ \begin{matrix} -22.0\\ -14.5\\ 13.0 \end{matrix} \right]\quad r=1 P=⎣⎡​1312−2​12176​−2612​⎦⎤​q=⎣⎡​−22.0−14.513.0​⎦⎤​r=1

cvx code

%% cvx: QP
cvx_beginvariable x(n)minimize ((1/2)*quad_form(x, P)+q'*x+r);x>=-1;x<=1;
cvx_end

yalmip code

%% yalmip
x = sdpvar(n, 1);
F = [-1<=x<=1];
obj = (1/2)*x'*P*x+q'*x+r
optimize(F, obj);

Reference

Convex Optimiztion S.Boyd Page 203, 215

【CVX】SDP and conic form problems相关推荐

  1. 【CVX】Equivalent convex problems (Huber) Log-optimal investment strategy

    Navigator Basic model b.cvx code c.cvx code c.yalmip code Log-optimal investment strategy cvx/yalmip ...

  2. vb.net form 最大化按钮 代码_【React】利用antd的form自定义表单控件

    由于业务的需求,需要对Form表单进行自定义控件操作 业务需求如下: 首先点击选择按钮---在弹窗中选择产品--将选择好的产品展示在页面上,关于自定义组件的封装网上大牛的方法大多是封装好新的组件,从而 ...

  3. 【MVC】使用FormCollection获取Form表单数据

    public ActionResult Create(FormCollection form){string name = form["name"]; //姓名string mob ...

  4. 【sfu】sdp和扩展的修改和对比

    支持TWCC的sdp扩展 webrtc 启用 transport-cc v=0 o=- 48624758483368499 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:B ...

  5. 【CVX】Solves a simple QCQP

    Navigator Lagrange dual of QCQP cvx code yalmip code Lagrange dual of QCQP We consider the QCQP min⁡ ...

  6. 【webrtc】SDP序列化与反序列化

    知道了webrtc sdp 的知识,很想知道如何对应. SDP 这位大神讲的比较透彻. sdp涉及到的内容还挺多, 只能以庖丁解牛的精神来啃werbtc源码了. sdp 是一种信令协议,只是文本化了. ...

  7. 【CVX】Markowitz Model

    Navigator portfolio model Matlab Code Reference portfolio model An extension of the classical Markow ...

  8. 【HTML】P4 表单 form input 与 button 等

    表单 (1)一个简单的搜索表单 (2)用户名密码表单 (3)单选与多选(复选) (4)隐藏域 (5)确认与重置 (6)普通按钮 button (7)文本域与下拉框 (8)禁用表单控件 (9)标签 la ...

  9. 【转】jsp 表单form传值

    写的很好,看到了忍不住不转啊,希望可以分享一下~~ 转载自http://blog.csdn.net/anmei2010/article/details/4140216 页面间链接和数据传递的三种方式 ...

  10. 【译】Engineering Security Through Coordination Problems

    最近,在比特币社区的核心和无限派别之间出现了一个小小的争执,这个争论可能代表了第五十次同一主题的争论,但这仍然很有趣,因为它突出了一个非常微妙的关于区块链的哲学观点工作. ViaBTC是一个支持Unl ...

最新文章

  1. 客户需求分析8个维度_CRM准确数据分析,把控客户需求
  2. 【设计模式】观察者模式 ( 简介 | 适用场景 | 优缺点 | 代码示例 )
  3. 软件测试-TC用户模板导入不成功
  4. python资源百度云_Python Selenium 百度云分享链接资源 批量保存
  5. RxSwift之深入解析map操作符的底层实现
  6. JS验证图片格式和大小并预览
  7. 一位良心发现的交易员自述:我们是怎么玩弄散户的
  8. C语言链表为什么倒着输出,关于链表倒着存,正着输出。
  9. 迷失lost结局什么意思_蒙上你的眼结局是什么意思?最后谁活下来了
  10. |NOIOJ|动态规划|8462:大盗阿福
  11. 学python能做什么类型的工作-学Python Web开发框架到什么程度可以找到开发的工作?...
  12. Log4j 配置的webAppRootKey参数问题
  13. 【项目经理产品经理简历套话】工作经历和项目经历的套话
  14. 人工智能各学派简介:符号主义,连接主义,行为主义
  15. qq远程控制 总是提示权限不足
  16. 软件需求工程一些概念
  17. Java 处理Hex字符串,SM2验签
  18. java实现注册登录版五子棋对战平台(超详细注释,内含人机实现)
  19. 360极速浏览器扩展 文件夹 在哪
  20. 除氨氮树脂在垃圾渗滤液行业的应用优势

热门文章

  1. 使用COMSOL提取指定时刻固体火箭发动机内的流体域(观点)
  2. 创建shap文件的属性字段类型区别_shapefile数据文件组成
  3. 《系统集成项目管理》第一章 信息化知识
  4. RQNOJ 30 愚蠢的矿工 解题报告
  5. 博主个人用的duilib版本
  6. 密码学家王小云:十年破解MD5和SHA-1两大国际密码
  7. t检验的显著性p值python_t检验中的t值和p值是什么关系_t检验和p值的关系
  8. 概率论07 联合分布
  9. html5版本过低,你的浏览器版本过低【解决步骤】
  10. vue 检测ie版本_vue判断当前浏览器为IE低版本,给出升级提示;IE11及其他浏览器正常使用-Go语言中文社区...