lanl-ansi / Alpine.jl

A Julia/JuMP-based Global Optimization Solver for Non-convex Programs
https://lanl-ansi.github.io/Alpine.jl/latest/
Other
244 stars 39 forks source link

NLobjective parsing #134

Closed harshangrjn closed 4 years ago

harshangrjn commented 5 years ago

Reporting a bug in objective parsing for this example:

@variable(m, 1 <= h[1:2] <= 2)
@NLobjective(m, Min, (2*(h[1] - h[2]))^2)
@constraint(m, h[1] + h[2] >= 0.5)

where, error is ERROR: LoadError: Alpine currently supports^operator with only positive integer exponents. However, objectives of this type are fine and provides correct solutions: 4*(h[1] - h[2])^2 and (2*h[1] - 2*h[2])^2