cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Integer Constraint

AdrianBaker
1-Newbie

Integer Constraint

It seems that in Mathcad, it is not possible to define a set? Nor is it possible to add a constraint to a solve block that constrains a variable to membership of a set (not even the fundamental sets upon which the basic number system is built, such as integers!!!). For a high-end maths program, this seems pretty shabby. Especially when you consider that even in Excel it is a piece of cake to add an integer, or binary constraint in the solver. What is going on PTC?

2 REPLIES 2

It (Integer Constraint) is possible use in old mathcad with

Solving & Optimization Expansion Pack (SOEP).

See "II" in the Maximize function:

http://twt.mpei.ac.ru/ochkov/Mathcad_14/Chapter3/3_019b_Chairs.gif

How do I do this in Mathcad Prime 2.0? This new Knitro solver you're using must have that capability?

Top Tags