-5
我試圖在我的MAC上安裝Julia。我在安裝過程中想出了以下錯誤:Julia MAC安裝
任何想法表示讚賞有關問題能夠得到什麼。
編輯: 「test.jl是這樣的:
using JuMP
using Gurobi
m = Model(solver=GurobiSolver())
m = Model()
@variable(m, x) # No bounds
@variable(m, x >= lb) # Lower bound only (note: 'lb <= x' is not valid)
@variable(m, x <= ub) # Upper bound only
@variable(m, lb <= x <= ub) # Lower and upper bounds
@variable(m, x == fixedval) # Fixed to a value (lb == ub)
@variable(m, x[1:M,1:N] >= 0)
aff = AffExpr([x, z], [3.0, 4.0], 2.0) # 3x + 4z + 2
quad = QuadExpr([x,y],[x,z],[3.0,4.0],aff) # 3x^2 + 4yz + 3x + 4z + 2
@constraints(m, begin
x >= 1
y - w <= 2
sum_to_one[i=1:3], z[i] + y == 1
end)
@expression(m, shared, sum(i*x[i] for i=1:5))
@constraint(m, shared + y >= 5)
@constraint(m, shared + z <= 10)
expr = @expression(m, [i=1:3], i*sum(x[j] for j=1:3))
什麼test.jl應該是 – pkofod
這個?是不是安裝問題?它看起來像朱莉婭安裝,工作s,甚至安裝了庫。什麼是test.jl? –
同意,它看起來像茱莉亞根本找不到你把'test.jl',這不是一個安裝問題 –