I get a parse error on my lp-file, but I don see any error in the formulation I have done. What is wrong here?
Have you entered your model via Word? Then the problem will probably be that some characters have ascii codes that are not recognised by lp_solve. For example, Word changes the minus sign (-) to another character that also looks like a minus sign, but it is a bit longer. The ascii code of this character is different from the ascii code of the real minus sign and lp_solve has problem with it. However you see a – on screen. The solution is not to use Word to enter your lp-model. Notepad should be ok. Better is to use the LPSolve IDE. – lp_solve prints the output on screen. Can I have the output also in a file? Yes, you can use standard redirection for that. Use the > before the filename to do that. For example: lp_solve input.lp >output.txt – I have a constraint saying that x < 2, but lp_solve comes with a solution of 2, how comes? < is the same as as <= also > is the same as >= This makes more than sense. Mathematically, 1.99999999999999999999999999999999999999999999999999 is smaller th
Related Questions
- When trying to activate Windows XP, I receive the error "Product Key is not valid." Did Keyfinder retrieve the wrong key?
- I get a parse error on my lp-file, but I don see any error in the formulation I have done. What is wrong here?
- I have installed an update and am getting an "OLEAUT32.DLL is out of date" error. What is wrong?