In [25]:
using OPCSPs

In [26]:
include("hotstarts.jl")


Out[26]:
solve! (generic function with 1 method)

In [37]:
op = gen_op(n_nodes=10, rng=MersenneTwister(10));

In [38]:
mm = create_model(op)


Out[38]:
OPModel(Maximization problem with:
 * 103 linear constraints
 * 109 variables: 100 binary
Solver set to Gurobi.Gurobi,:NotSolved)

In [43]:
@time solve!(mm)


  
Out[43]:
:Optimal
0.002939 seconds (61 allocations: 15.219 KB)

In [44]:
@time solve!(mm)


  
Out[44]:
:Optimal
0.002935 seconds (61 allocations: 15.219 KB)

In [41]:
Profile.clear()
@profile solve!(mm)


Out[41]:
:Optimal

In [32]:
using ProfileView
ProfileView.view()


Out[32]:
Profile results Function:

In [ ]: