JWally / jsLPSolver

Simple OOP javaScript library to solve linear programs, and mixed integer linear programs
The Unlicense
420 stars 69 forks source link

Urgent help needed to understand LP solve format for division #76

Closed contactprad closed 5 years ago

contactprad commented 6 years ago

we are trying to define the equation something like below:

" (a1 + b1 ) /( a1 + b1 + x1 + y1 ) >= 0.2" but that's not working.

What will be the document guidance for above? Thanks

bchevalier commented 6 years ago

Hey, this solver can only handle linear equations. are a1 and b1 variables? or are they constants? if those are variables then you would need another solver. if they are constants they places the variables x1 and y1 on the other side of the constraint and try solving again

contactprad commented 6 years ago

ah ok! got it. a1 and a2 are variables indeed. we can represent this in linear form and that should solve the problem.