warmup_variability.jl 530 Bytes
Newer Older
St. Elmo's avatar
St. Elmo committed
1
@testset "Warm up point generation" begin
2
    model = load_model(StandardModel, model_paths["e_coli_core.json"])
St. Elmo's avatar
St. Elmo committed
3

4
    pts, lbs, ubs = warmup_from_variability(
St. Elmo's avatar
St. Elmo committed
5
        model,
6
7
        Tulip.Optimizer,
        100;
8
        modifications = [change_constraint("EX_glc__D_e"; lb = -2, ub = 2)],
Miroslav Kratochvil's avatar
Miroslav Kratochvil committed
9
        workers = W,
St. Elmo's avatar
St. Elmo committed
10
11
    )

Miroslav Kratochvil's avatar
Miroslav Kratochvil committed
12
13
14
15
    idx = first(indexin(["EX_glc__D_e"], reactions(model)))
    @test size(pts) == (95, 100)
    @test all(pts[idx, :] .>= -2)
    @test all(pts[idx, :] .<= 2)
16
17
    @test lbs[idx] == -2
    @test ubs[idx] == 2
St. Elmo's avatar
St. Elmo committed
18
end