Hello!

I need some help to write a method for the follow ineguality p1*x1 + … + pn*xn<=m. I will be glad too, if you can help in the simle method for p1*x1+p2*x2<=m , you could knowing from the Microeconomics.
The variebels value need to store in arrays.

Thanks.

Recommended Answers

All 2 Replies

Do you want to test for inequality or do you want a method to solve it?
Testing is easy : use an if statement
For solving I would suggest that you translate in code, how you solve it by hand.

You have a lot of operators you can use

<
<=
==
>=
!=

(see helpfile for more and info if you havent a clue what they mean)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.