Questions tagged [julia-jump]

JuMP is a domain-specific modeling language for mathematical programming embedded in the Julia language.

JuMP is a domain-specific modeling language for mathematical programming embedded in the Julia language.

https://github.com/JuliaOpt/JuMP.jl

362 questions
0
votes
1 answer

Output .sol file Gurobi and Julia JuMP

How can I output a .sol file from JuMP? Im playing around with the lower level model but cant seem to figure this one out. Using Gurobi and JuMP inside of Atom editor.
0
votes
1 answer

How to verify SCIP compiled with Ipopt?

I am using SCIP via Julia (currently with SCIP.jl, previous with AmplNLWriter.jl). I compiled SCIP as follows per the instructions for SCIP.jl: make SHARE=true GMP=false IPOPT=true READLINE=false ZLIB=false scipoptlib I am able to call SCIP from…
Alex D
  • 21
  • 3
0
votes
1 answer

How to code a summation when its lower bound is a vector?

For the purpose of coding a production planning problem, I am using "Julia". In the formulations, there is a formula with a lower bound which is a vector . Please have a look to the attachment . When I want to enter this vector as the lower bound…
0
votes
2 answers

Julia LoadError: MethodError: no method matching addconstraint(::Int64, ::Jump.GenericRangeConstarint{JuMP.GenericAffExpr{Float64,JuMP.Variable}})

I am trying to run the following file. i tried uploading piece by piece. That is why some of the components are commented out. No matter which component I have activated I receive this error for the constraints part. using JuMP using Gurobi pset =…
Ozgu
  • 151
  • 1
  • 12
0
votes
2 answers

In non-linear solvers, what influences solver time vs NLP function evaluations?

I have some difficulties in understanding how performances in non-linear optimisation are influenced by the specific way the solver engine is interfaced. We have an optimisation model that, in its first version, was written in GAMS. IPOPT (a common…
Antonello
  • 6,092
  • 3
  • 31
  • 56
0
votes
2 answers

JuMP constraint macro changes type of previously declared variable

I have a simple math prog that I am trying to solve: m = Model(solver=MosekSolver()) @variable(m, x[1:8] >= 0) @objective(m,Min,sum(x)) @constraint(m,A*x .== given) @constraint(m, x, sum(x)==1) status = solve(m) println("x = ", getvalue(x)) A is…
puhniste
  • 1
  • 1
  • 2
0
votes
1 answer

JuMP - MethodError: `getindex` has no method matching getindex(::Function, ::Int64)

I have to calculate the ideal vector of this multiobjective problem. I cannot how to access the first and second function of the functs_BK1() in the @objective. Any Idea how I could make all dynamic and support n-functions? using JuMP using…
sparkle
  • 7,530
  • 22
  • 69
  • 131
0
votes
1 answer

Defining adaptive decision variables in JuMPeR

This is the code: s=5 k=3 mod= RobustModel(solver=GurobiSolver()) @defUnc(mod,ξ[i=1:k,j=1:s]) adaptive(mod,ext[1:k], policy=Affine, depends_on=ξ[1:k]) @defVar(mod, obj) @setObjective(mod, Max, obj) The error is: …
0
votes
0 answers

How to set timelimit for OsilCouenneSolver, CoinOptServices.jl package

I am using Julia, JuMP to solve a NLMIP problem. I am using Couenne solver through CoinOptServices.jl package using JuMP using CoinOptServices I would like to set a timeout for the solver, something like mdl = Model(…
0
votes
1 answer

Julia-JuMP error solving NLMIP: ERROR: error compiling read_osrl_file!: could not load module C:\Users: no error

I recently developed in Julia, JuMP a program (file "main_lac.jl" builds the problem and file "lac.jl" solves it) to model and solve a mixed-integer nonlinear programming problem. Everithing worked fine untile few days ago and I was able to solve…
0
votes
1 answer

Showing each iteration results of JuMP and NLopt optimization routines in Julia

I found a combination of JuMP and NLopt example while I was trying to see the way Julia implements different routines for optimization. The following example (that can be found here: https://github.com/JuliaOpt/NLopt.jl) gives you the final solution…
Echetlaeus
  • 343
  • 2
  • 3
  • 15
-1
votes
1 answer

Why is my program searching for this key?

I have a program written in julia, and I cannot figure out why I am getting a key error. The relevant portion of the code is shown below: try println("THIS IS s[ [j, k] ]: ", s [ [j, k] ]) catch e println("THIS IS s: ", s) println("THIS…
graphtheory123
  • 311
  • 1
  • 6
-1
votes
1 answer

MathOptInterface.OTHER_ERROR when trying to use ISRES of NLopt through JuMP

I am trying to minimize a nonlinear function with nonlinear inequality constraints with NLopt and JuMP. In my test code below, I am minimizing a function with a known global minima. Local optimizers such as LD_MMA fails to find this global minima,…
knkn1711
  • 35
  • 6
-1
votes
1 answer

What is the best way to call inline function in Julia?

I think the key challenge in my code is calling these in line functions: rr(τ) = 1/((1+prstp)^(tstep*(τ-1))) I am calling it in the following way: @NLconstraint(dice_model, UTILITY == sum((C[i]^(1-elasmu)*l[i]/(1-elasmu)) * rr(1.0)…
Deep S
  • 23
  • 2
-1
votes
1 answer

What are the best resources to learn JuMP?

I am new to JuMP / Julia. Do you have some suggestions or advice about how to learn it given that there are so few resources on the internet ?
chupa_kabra
  • 465
  • 2
  • 5
  • 15
1 2 3
24
25