当前位置:网站首页>安装mosek,license安装位置查找
安装mosek,license安装位置查找
2022-07-28 14:11:00 【小草cys】
安装mosek的步骤。
第一步:安装网站:Mosek - Downloads
下载软件安装包

我下载的使Windows的,根据需要可变。
第二步:安装软件包,跟着提示步骤继续安装就可以了。
第三步:打开Matlab,设置添加路径


路径设置取决于第二步软件包的安装路径:选择添加文件夹,设置路径,之后点击保存。
另外一个方法是在Matlab中输入:addpath('D:\360Downloads\Mosek\9.3\toolbox\R2015a'),输入内容与第二部保存路径一致。
第四步:获取license.
获取地址:Academic Licenses
这个需要用学校的邮箱去申请,在学校官网申请邮箱,在这个网址申请。
发送的邮件里会有一个文件,即license

邮件里面会给出需要保存的位置,一般是C-users-用户名-mosek文件夹,即在用户名文件夹下新建一个mosek文件夹,把license放在mosek文件夹中。
若仍不清楚位置,或在测试时候找不到license,可以自测license文件需要保存的位置,输入:
clear;close all;clc;
%optimazation problem
R = [2 -3; 4 5];
p = [-1; -3];
A= [2 1; -3 7; 4 2];
B = [3; 1; 5];
lb = [0; 0];
[x,fval,exitflag,output,lambda] = quadprog(R,p,A,B,[],[],lb);
第五步:测试程序,输入mosekdiag
即可看到lic需要安装到哪个位置

边栏推荐
- Enumeration type
- Introduction to mqtt protocol
- Downloading PIP package is too slow
- [complete installation package & tutorial] sqlserver basic installation_ Sqlserver completely uninstalled_ Sqlserver custom installation_ Getting started with sqlserver_ SQLSERVER database
- [thread safety] what risks may multithreading bring?
- First class exercise
- 4、 C language operators
- Search Pfam with Hmmer
- 35道MySQL面试必问题图解,小白都能看懂
- Compose learning notes 2 - launchedeffect, status and status management
猜你喜欢

Solution to the problem of high collapse caused by float (including all methods)

Image steganography method

Creating, deleting and viewing Anaconda virtual environment

35道MySQL面试必问题图解,小白都能看懂

RepVGG论文详解以及使用Pytorch进行模型复现

Mysql使用left join连表查询时,因连接条件未加索引导致查询很慢

SSRF vulnerability

MITK creates plug-ins and generates plug-ins

即刻体验 | 借助 CTS-D 进一步提升应用设备兼容性

A problem -- about dragging div in JS, when I change div to round, there will be a bug
随机推荐
Chapter I Introduction
&0xffffffff(0x08)
Vtkcellpicker picking triangular patches
The third pre class exercise
6、 C language circular statement
2、 Declaration and definition of variables and constants
linear transformation
Three pop-up boxes commonly used in JS
Application of edge technology and applet container in smart home
14、 ROS meta function package
Untitled may
Is the expansion operator a deep copy or a shallow copy
Basic operation implementation of sequence table
SSL socket cross platform solution libevent OpenSSL
Establishment and traversal of binary tree (implemented in C language)
23、 TF coordinate transformation (III): dynamic coordinate transformation
Install pytorch geometric on colab, and libcudart.so.10.2 appears when importing the package
Pytorch GPU installation
软件开发三大痛点!小程序容器如何解决?
When MySQL uses left join to query tables, the query is slow because the connection conditions are not properly guided