good_lp 一个易于使用的线性编程建模器,具有大问题的性能,并且类型正确。 use good_lp :: {variables, variable, coin_cbc, SolverModel, Solution}; fn main () { let mut vars = variables! (); let a = vars. add ( variable (). max ( 1 )); let b = vars. add ( variable (). min ( 2 ). max ( 4 )); let solution = vars. maximi