ohinder / onephase.jl Goto Github PK
View Code? Open in Web Editor NEWThis package is the implementation of a one-phase interior point method that finds KKT points of nonconvex optimization problems.
License: Other
This package is the implementation of a one-phase interior point method that finds KKT points of nonconvex optimization problems.
License: Other
get MUMPS/MA57 going
Make it so we can interface with JuMP directly.
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
Go through code and fix speed issues. Note that display progress is taking longer than it should.
See:
https://discourse.julialang.org/t/speeding-up-julia/4794
https://julialang.org/blog/2013/09/fast-numeric
https://docs.julialang.org/en/release-0.4/manual/performance-tips/
Currently we use
a(x) >= 0, but paper uses a(x) <= 0. Should make it consistent, i.e., change code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.