Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

Error formulation parse wrong
0
Posted

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?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123