Giter VIP home page Giter VIP logo

onephase.jl's People

Contributors

fadihamad avatar fadihamad94 avatar ohinder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

onephase.jl's Issues

Usage

If I run

using OnePhase, JuMP

m = Model(OnePhase())
@variable(m, x, start=-3)
@objective(m, Min, x)
@NLconstraint(m, x^2 >= 1.0)
@NLconstraint(m, x >= -1.0)

status = solve(m)

I get

ERROR: MethodError: objects of type Module are not callable

as an error. I might have a different version of JuMP. However,
replacing m = Model(OnePhase())
with m = Model(solver=OnePhaseSolver()) works on my laptop.

Moreover, if I run

using OnePhase, CUTEst
nlp = CUTEstModel("CHAIN")
iter = one_phase_solve(nlp);

I get the error

projecting onto bounds ...
ERROR: MethodError: no method matching cons(::CUTEst.CUTEstModel, ::Array{Float64,1})
Closest candidates are:
  cons(::OnePhase.MathProgNLPModel, ::Array{Float64,N} where N) at /home/jomi/.julia/v0.6/OnePhase/src/JuMPinterface.jl:178
Stacktrace:
 [1] eval_a at /home/jomi/.julia/v0.6/OnePhase/src/utils/Class_cutest.jl:138 [inlined]
 [2] eval_init(::OnePhase.Class_CUTEst, ::OnePhase.Class_parameters, ::advanced_timer.class_advanced_timer, ::Array{Float64,1}) at /home/jomi/.julia/v0.6/OnePhase/src/init/other.jl:4
 [3] gertz_init(::OnePhase.Class_CUTEst, ::OnePhase.Class_parameters, ::advanced_timer.class_advanced_timer) at /home/jomi/.julia/v0.6/OnePhase/src/init/gertz_init.jl:12
 [4] one_phase_solve(::CUTEst.CUTEstModel, ::OnePhase.Class_parameters) at /home/jomi/.julia/v0.6/OnePhase/src/IPM/one_phase.jl:25
 [5] one_phase_solve(::CUTEst.CUTEstModel) at /home/jomi/.julia/v0.6/OnePhase/src/IPM/one_phase.jl:14

address andreas's feedback

  • due better job of explaining merit function acceptance condition
  • figure out why IPOPT fails more often than in IPOPT paper (I think it is MUMPs, https://github.com/JuliaSmoothOptimizers/CUTEst.jl may use different default problem sizes, maybe other factors).
  • make replication easier/more transparent, i.e., add benchmarking code to repo
  • IPOPT fails on problems with more equalities than inequalities

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.