rust-or / good_lp

Linear Programming for Rust, with a user-friendly API. This crate allows modeling LP problems, and lets you solve them with various solvers.
https://crates.io/crates/good_lp
MIT License
216 stars 35 forks source link

Small documentation error #28 #34

Closed robbiemu closed 11 months ago

robbiemu commented 11 months ago

while I'm here I thought I could satisfy this as well

lovasoa commented 11 months ago

What was the problem here? It looks like it was an example for the variables bounds syntax with two inequalities

robbiemu commented 11 months ago

the documentation currently says:

     /// \`\`\`
     /// # use good_lp::*;
     /// variables!{problem: 2 <= x <= 3;}
     /// \`\`\`
     /// is equivalent to
     /// \`\`\`
    /// # use good_lp::*;
    /// let mut problem = ProblemVariables::new();
    /// let y = problem.add(variable().min(0));
    /// \`\`\`

which is clearly not true. This issue was acknowledged several months ago. But, the OP never came back and made the change when invited.

lovasoa commented 11 months ago

Oh, I see, my bad. Thanks !