Example: Positive hull cone
Profiles: OSCAR v1.0, OSCAR v1.1, OSCAR v1.2, OSCAR v1.3, OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7, OSCAR v1.8
Construct a cone from two rays in QQ^2.
Related Specification
Systems
Oscar.jl
Generate code (generate.jl) [ edit ]
using Oscar
obj = positive_hull([1 0; 0 1])
save("data.mrdi", obj)
Data outputs
Profiles: OSCAR v1.0, OSCAR v1.1, OSCAR v1.2, OSCAR v1.3, OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": {"name": "Cone", "params": {"_type": "QQField"}},
"data": {
"INPUT_LINEALITY": [{"cols": 2}],
"CONE_AMBIENT_DIM": 2,
"_ns": {"polymake": ["https://polymake.org", "4.15"]},
"_type": "polytope::Cone<Rational>",
"INPUT_RAYS": [["1", "0"], ["0", "1"]]
}
}
This serialized output is equivalent for these profiles up to UUID renaming and recorded namespace version strings.