You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
514 B
13 lines
514 B
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization
|
|
# Copyright (C) 2020-2021, UChicago Argonne, LLC. All rights reserved.
|
|
# Released under the modified BSD license. See COPYING.md for more details.
|
|
|
|
using MIPLearn
|
|
|
|
@testset "Parse" begin
|
|
@test MIPLearn.parse_name("x") == ["x"]
|
|
@test MIPLearn.parse_name("x[3]") == ["x", "3"]
|
|
@test MIPLearn.parse_name("test_eq[x]") == ["test_eq", "x"]
|
|
@test MIPLearn.parse_name("test_eq[x,y,z]") == ["test_eq", "x", "y", "z"]
|
|
end
|