Comments (2)
Try
module MyAppHelloTulip
using Tulip
function julia_main()::Cint
try
if isempty(ARGS)
real_main(string("Tulip Version: v", Tulip.__init__()))
else
real_main(ARGS[1])
end
catch
Base.invokelatest(Base.display_error, Base.catch_stack())
return 1
end
return 0 # if things finished successfully
end
real_main(_s::AbstractString) = println(_s)
function __init__()
try
if abspath(PROGRAM_FILE) == @__FILE__
real_main("abspath(PROGRAM_FILE) == @__FILE__")
end
catch
Base.invokelatest(Base.display_error, Base.catch_stack())
return 3
end
end
end # module
Anything executed at the top level is being run at precompile time. Rather you probably want it to run when the module is loaded at runtime.
from tulip.jl.
Thanks for the advice, do you know a text, where the Julia concept of __init()__()
is explained in an easy to understand manner?
Unfortunately, I still have no clue how to solve the initial issue of non relocability of Tulip.jl :-(
from tulip.jl.
Related Issues (20)
- Wrong vector in residual norm HOT 1
- New release of Tulip for JuMP 0.22 / MOI 0.10
- Error when calling `solution_summary()` HOT 3
- Duplicate constraint name errors with JuMP HOT 10
- Are models with Rational arithmetic supposed to be supported? HOT 3
- IPM/HSD: for BigFloat optimization, computing ΞΎg_ in solve_newton_system! causes a big portion of total allocations HOT 4
- New release? HOT 1
- New failing tests in MOI
- Support for compute_conflict!(model) HOT 10
- MathOptInterface.BarrierIterations
- Extended Precision when called from JuMP HOT 1
- Writing user extension for `Tulip.KKT.AbstractKKTBackend`, `Tulip.KKT.AbstractKKTSolver` etc. HOT 1
- Add iterative refinement
- Add solver MUMPS using KKT interface as new backend. HOT 1
- Add solver Paradiso as backend for KKT Interface HOT 1
- Detect out of memory errors and return proper error massage
- Mittelmann's benchmarks, 23 problems x 18 solvers HOT 2
- Define error code for failed factorization
- Presolve causes infeasibility error? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tulip.jl.