pub fn mps() -> MPS<T> {
    let name = "TESTPROB".to_string();
    let cost_row_name = "COST".to_string();
    let cost_values = vec![(0, R64!(1)), (1, R64!(4)), (2, R64!(9))];
    let rows = vec![
        Row { name: "LIM1".to_string(), constraint_type: ConstraintRelation::Less },
        Row { name: "LIM2".to_string(), constraint_type: ConstraintRelation::Greater },
        Row { name: "MYEQN".to_string(), constraint_type: ConstraintRelation::Equal },
    ];
    let columns = vec![
        Column {
            name: "XONE".to_string(),
            variable_type: VariableType::Continuous,
            values: vec![
                (0, R64!(1)),
                (1, R64!(1)),
            ],
        },
        Column {
            name: "YTWO".to_string(),
            variable_type: VariableType::Integer,
            values: vec![
                (0, R64!(1)),
                (2, -R64!(1)),
            ],
        },
        Column {
            name: "ZTHREE".to_string(),
            variable_type: VariableType::Continuous,
            values: vec![
                (1, R64!(1)),
                (2, R64!(1)),
            ],
        },
    ];
    let ranges = vec![];
    let rhss = vec![
        Rhs {
            name: "RHS1".to_string(),
            values: vec![(0, R64!(5)), (1, R64!(10)), (2, R64!(7))],
        }
    ];
    let bounds = vec![
        Bound {
            name: "BND1".to_string(),
            values: vec![
                (0, BoundType::UpperContinuous(R64!(4))),
                (1, BoundType::LowerContinuous(-R64!(1))),
                (1, BoundType::UpperContinuous(R64!(1))),
            ],
        }
    ];

    MPS::new(
        name,
        Objective::Minimize,
        cost_row_name,
        cost_values,
        rows,
        columns,
        rhss,
        ranges,
        bounds,
    )
}
/// Build the expected `MPS` instance, corresponding to the MPS file string.
Build the expected `MPS` instance, corresponding to the MPS file string.
Build the expected ` MPS ` instance corresponding to the MPS file string .
pub fn mps() -> MPS<T> {
    let name = "TESTPROB".to_string();
    let cost_row_name = "COST".to_string();
    let cost_values = vec![(0, R64!(1)), (1, R64!(4)), (2, R64!(9))];
    let rows = vec![
        Row { name: "LIM1".to_string(), constraint_type: ConstraintRelation::Less },
        Row { name: "LIM2".to_string(), constraint_type: ConstraintRelation::Greater },
        Row { name: "MYEQN".to_string(), constraint_type: ConstraintRelation::Equal },
    ];
    let columns = vec![
        Column {
            name: "XONE".to_string(),
            variable_type: VariableType::Continuous,
            values: vec![
                (0, R64!(1)),
                (1, R64!(1)),
            ],
        },
        Column {
            name: "YTWO".to_string(),
            variable_type: VariableType::Integer,
            values: vec![
                (0, R64!(1)),
                (2, -R64!(1)),
            ],
        },
        Column {
            name: "ZTHREE".to_string(),
            variable_type: VariableType::Continuous,
            values: vec![
                (1, R64!(1)),
                (2, R64!(1)),
            ],
        },
    ];
    let ranges = vec![];
    let rhss = vec![
        Rhs {
            name: "RHS1".to_string(),
            values: vec![(0, R64!(5)), (1, R64!(10)), (2, R64!(7))],
        }
    ];
    let bounds = vec![
        Bound {
            name: "BND1".to_string(),
            values: vec![
                (0, BoundType::UpperContinuous(R64!(4))),
                (1, BoundType::LowerContinuous(-R64!(1))),
                (1, BoundType::UpperContinuous(R64!(1))),
            ],
        }
    ];
    MPS::new(
        name,
        Objective::Minimize,
        cost_row_name,
        cost_values,
        rows,
        columns,
        rhss,
        ranges,
        bounds,
    )
}
pub fn mps ( ) -> MPS < T > { let name = " " . to_string ( ) ; let cost_row_name = " " . to_string ( ) ; let cost_values = vec ! [ ( 0 R64 ( 1 ) ) ( 1 R64 ( 4 ) ) ( 2 R64 ( 9 ) ) ] ; let rows = vec ! [ Row { name " " to_string ( ) constraint_type ConstraintRelation Less } Row { name " " to_string ( ) constraint_type ConstraintRelation Greater } Row { name " " to_string ( ) constraint_type ConstraintRelation Equal } ] ; let columns = vec ! [ Column { name " " to_string ( ) variable_type VariableType Continuous values vec [ ( 0 R64 ( 1 ) ) ( 1 R64 ( 1 ) ) ] } Column { name " " to_string ( ) variable_type VariableType Integer values vec [ ( 0 R64 ( 1 ) ) ( 2 R64 ( 1 ) ) ] } Column { name " " to_string ( ) variable_type VariableType Continuous values vec [ ( 1 R64 ( 1 ) ) ( 2 R64 ( 1 ) ) ] } ] ; let ranges = vec ! [ ] ; let rhss = vec ! [ Rhs { name " " to_string ( ) values vec [ ( 0 R64 ( 5 ) ) ( 1 R64 ( 10 ) ) ( 2 R64 ( 7 ) ) ] } ] ; let bounds = vec ! [ Bound { name " " to_string ( ) values vec [ ( 0 BoundType UpperContinuous ( R64 ( 4 ) ) ) ( 1 BoundType LowerContinuous ( R64 ( 1 ) ) ) ( 1 BoundType UpperContinuous ( R64 ( 1 ) ) ) ] } ] ; MPS :: new ( name , Objective :: Minimize , cost_row_name , cost_values , rows , columns , rhss , ranges , bounds , ) }
Build the expected `MPS` instance, corresponding to the MPS file string.
Build the expected ` MPS ` instance corresponding to the MPS file string .