在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaFirstOrder/StructuredOptimization.jl开源软件地址:https://github.com/JuliaFirstOrder/StructuredOptimization.jl开源编程语言:Julia 100.0%开源软件介绍:StructuredOptimization.jlStructuredOptimization.jl is a high-level modeling language that utilizes a syntax that is very close to the mathematical formulation of an optimization problem. This user-friendly interface acts as a parser to utilize three different packages: StructuredOptimization.jl can handle large-scale convex and nonconvex problems with nonsmooth cost functions. It supports complex variables as well. InstallationTo install the package, hit pkg> add StructuredOptimization UsageA least absolute shrinkage and selection operator (LASSO) can be solved with only few lines of code: julia> using StructuredOptimization
julia> n, m = 100, 10; # define problem size
julia> A, y = randn(m,n), randn(m); # random problem data
julia> x = Variable(n); # initialize optimization variable
julia> λ = 1e-2*norm(A'*y,Inf); # define λ
julia> @minimize ls( A*x - y ) + λ*norm(x, 1); # solve problem
julia> ~x # inspect solution
100-element Array{Float64,1}:
0.0
0.0
0.0
0.440254
0.0
0.0
0.0
[...] See the documentation for more details about the type of problems StructuredOptimization.jl can handle and the demos to check out some examples. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论