39 using namespace Gecode;
107 virtual void print(std::ostream& os)
const {
108 os <<
"XY " <<
f[1].med() <<
" " <<
f[2].med()
117 int main(
int argc,
char* argv[]) {
122 FloatMaximizeScript::run<DescartesFolium,BAB,Options>(
opt);
int p
Number of positive literals for node type.
Node * x
Pointer to corresponding Boolean expression node.
Example: Folium of Descartes
int main(int argc, char *argv[])
Main-function.
DescartesFolium(DescartesFolium &p)
Constructor for cloning p.
FloatVarArray f
The numbers.
DescartesFolium(const Options &opt)
Actual model.
virtual Space * copy(void)
Copy during cloning.
virtual FloatVar cost(void) const
Cost function.
double step
Minimum distance between two solutions.
virtual void print(std::ostream &os) const
Print solution coordinates.
void parse(int &argc, char *argv[])
Parse options from arguments argv (number is argc)
Parametric base-class for scripts.
void solutions(unsigned int n)
Set default number of solutions to search for.
void step(double s)
Set default step value.
FloatValBranch FLOAT_VAL_SPLIT_MIN(void)
Select values not greater than mean of smallest and largest value.
void sqr(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
void pow(Home home, FloatVar x0, int n, FloatVar x1)
Post propagator for for $n\geq 0$.
Post propagator for SetVar SetOpType SetVar y
void trace(Home home, const FloatVarArgs &x, TraceFilter tf, int te, FloatTracer &t)
Create a tracer for float variables.
void rel(Home home, FloatVar x0, FloatRelType frt, FloatVal n)
Propagates .