IBM ILOG Solver User's Manual > More on Modeling > Using Constrained Floating-Point Variables: Modeling Equations > Using IloDichotomize |
Using IloDichotomize |
INDEX
![]() |
The function IloDichotomize
creates and returns a goal in a Concert Technology model. The goal tries to instantiate constrained floating-point variables. To do so, it recursively searches half the domain of each variable at a time. This function works on IloNumVar
variables or IloNumVarArray
arrays of variables. (The type can be either Float
or Int
.)
The following example computes the intersection between the folium of Descartes and an exponentially decaying function. It uses the goal returned by IloDichotomize
to search for a solution.
For the model of the problem, you use two variables related by the following equations:
x*x/y + y*y/x = 2
y = e-x
Here is the code:.
The program finds two solutions:
x = [0.868418..0.868418] y = [0.419615..0.419615] x = [0.294563..0.294563] y = [0.744857..0.744857] |
The complete program is available online in the YourSolverHome/examples/src/folium.cpp
file.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |