ValuesUnderConstraints/Simplifier - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : ValuesUnderConstraints/Simplifier

ValuesUnderConstraints

  

Simplifier

  

return the simplifier of a value-under-constraints object

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

Simplifier(vc)

Parameters

vc

-

ValueUnderConstraints

Description

• 

The command Simplifier(vc) returns the simplifier of vc.

Assumptions

• 

When Simplify(vc) executes, it is assumed that solving the equations of vc will yield one and only one solution. If this assumption holds, then this solution is used to simplify the value of vc by means of the simplifier of vc, otherwise an error is raised.

Remarks

• 

This simplifier can be supplied by the user when vc is created.

• 

If no simplifier is supplied by the user, then the following default procedure is used proc(v, eqs::list(`=`)) return eval(v, eqs); end proc. See the help page of the command ValueUnderConstraints

Examples

withValuesUnderConstraints:

Define a simplifier

mysimplifier := proc(v, eqs::list(`=`)) return :-Eval(v, eqs) mod 2; end proc;

mysimplifierprocv,eqs::list`=`return:-Evalv,eqsmod2end proc

(1)

Create a value-under-constraints object using the above simplifier

vcValueUnderConstraintsa+b,a+b=100,ab=2,,mysimplifier

vcvalue a+b when a51=0,b49=0

(2)

Apply Simplify

Simplifyvc

value 0 when a51=0,b49=0

(3)

Get the simplifier

pSimplifiervc;evalp

pprocv,eqs::list`=`return:-Evalv,eqsmod2end proc

procv,eqs::list`=`return:-Evalv,eqsmod2end proc

(4)

Create another value-under-constraints object using the default simplifier

vcValueUnderConstraintsa+b,a+b=100,ab=2

vcvalue a+b when a51=0,b49=0

(5)

Apply Simplify

Simplifyvc

value 100 when a51=0,b49=0

(6)

Get the simplifier

pSimplifiervc;evalp

pprocv,eqs::list`=`returnevalsubsindetsv,PolyhedralSets:-QuasiPolynomials:-QuasiPolynomial,qp→function:-Evalqp,eqs,eqsend proc

procv,eqs::list`=`returnevalsubsindetsv,PolyhedralSets:-QuasiPolynomials:-QuasiPolynomial,qp→function:-Evalqp,eqs,eqsend proc

(7)

References

  

Rui-Juan Jing, Yuzhuo Lei, Christopher F. S. Maligec, Marc Moreno Maza: "Counting the Integer Points of Parametric Polytopes: A Maple Implementation." Proceedings of Computer Algebra in Scientific Computing - 26th International Workshop (CASC) 2024: 140-160, Lecture Notes in Computer Science, vol. 14938, Springer.

Compatibility

• 

The ValuesUnderConstraints[Simplifier] command was introduced in Maple 2025.

• 

For more information on Maple 2025 changes, see Updates in Maple 2025.

See Also

ValuesUnderConstraints[AreEqual]

ValuesUnderConstraints[Constraints]

ValuesUnderConstraints[Equations]

ValuesUnderConstraints[HasInconsistentConstraints]

ValuesUnderConstraints[Inequations]

ValuesUnderConstraints[IntegerSymbols]

ValuesUnderConstraints[MakeCaseDiscussion]

ValuesUnderConstraints[MergeTwoCaseDiscussions]

ValuesUnderConstraints[NonNegativeInequalities]

ValuesUnderConstraints[PairCompare]

ValuesUnderConstraints[PositiveInequalities]

ValuesUnderConstraints[RefineCaseDiscussion]

ValuesUnderConstraints[Simplifier]

ValuesUnderConstraints[Simplify]

ValuesUnderConstraints[Symbols]

ValuesUnderConstraints[ToPiecewise]

ValuesUnderConstraints[Value]

ValuesUnderConstraints[ValueUnderConstraints]