[Couenne-tickets] [Couenne] #40: Error Using Couenne Through Julia

Couenne coin-trac at coin-or.org
Mon Jul 30 09:26:17 EDT 2018


#40: Error Using Couenne Through Julia
---------------------------+----------------------
  Reporter:  muriloasouza  |      Owner:  pbelotti
      Type:  defect        |     Status:  new
  Priority:  major         |  Milestone:
 Component:  Couenne       |    Version:
Resolution:                |   Keywords:
---------------------------+----------------------

Comment (by muriloasouza):

 Replying to [comment:1 pbelotti]:
 > Hi,
 >
 > is there any way in Julia/JuMP to write a MINLP to the .nl format read
 by Couenne, and if so, can you attach the .nl file? That would help
 understand what the problem is, as I don't have Julia installed.

 Hello,

 I really don't know. I'm fairly new to Julia. But here's the code i wrote,
 if that helps you in anyway:


 {{{
 using JuMP, CouenneNL

 m = Model(solver=AmplNLSolver(CoinOptServices.couenne))

 m = Model(solver=CouenneNLSolver())

 X_U = [3;5;10]

 @variable(m, 0 <= X[i=1:3] <= X_U[i])

 @variable(m, x[i=4:5], Bin)

 @NLobjective(m, Min, 100*(x[5] - (0.5 + x[4])^2)^2 + (1 - x[4])^2)

 @NLconstraint(m, x[4]*X[3]+x[5]*X[1] <= 20)

 @constraint(m, 5*X[1]-2*x[5]+3*X[3] <= 17)

 print(m)

 status = solve(m)

 println("Objective value: ", getobjectivevalue(m))
 println("x = ", getvalue(x))
 println("X = ", getvalue(X))
 }}}

--
Ticket URL: <https://projects.coin-or.org/Couenne/ticket/40#comment:2>
Couenne <https://projects.coin-or.org/Couenne>
Couenne, a solver for non-convex MINLP



More information about the Couenne-tickets mailing list