|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.real.RealModeler
public class RealModeler
Modeler for real expressions.
Field Summary | |
---|---|
protected Problem |
problem
The problem this modler should build classes for. |
Constructor Summary | |
---|---|
RealModeler(Problem problem)
Builds a modeler for the specified problem. |
Method Summary | |
---|---|
RealIntervalConstant |
around(double d)
Arounds a double d to [d - epsilon, d + epilon] . |
RealExp |
cos(RealExp exp)
Cosinus of an expression. |
RealIntervalConstant |
cst(double d)
Makes a constant interval from a double d ([d,d]). |
RealIntervalConstant |
cst(double a,
double b)
Makes a constant interval between two doubles [a,b]. |
Constraint |
eq(double cst,
RealExp exp)
|
Constraint |
eq(RealExp exp,
double cst)
|
Constraint |
eq(RealExp exp1,
RealExp exp2)
Eqality constraint. |
Constraint |
geq(double cst,
RealExp exp)
|
Constraint |
geq(RealExp exp,
double cst)
|
Constraint |
geq(RealExp exp1,
RealExp exp2)
Superiority constraint. |
Constraint |
leq(double cst,
RealExp exp)
|
Constraint |
leq(RealExp exp,
double cst)
|
Constraint |
leq(RealExp exp1,
RealExp exp2)
Inferority constraint. |
Constraint |
makeEquation(RealExp exp,
RealIntervalConstant cst)
Makes an equation from an expression and a constantt interval. |
RealVar |
makeRealVar(double inf,
double sup)
Builds an anonnymous interval variable |
RealVar |
makeRealVar(java.lang.String name)
Builds an interval variable without any information about bounds |
RealVar |
makeRealVar(java.lang.String name,
double inf,
double sup)
Builds an interval variable. |
RealExp |
minus(RealExp exp1,
RealExp exp2)
Substraction of two expressions. |
RealExp |
mult(RealExp exp1,
RealExp exp2)
Multiplication of two expressions. |
RealExp |
plus(RealExp exp1,
RealExp exp2)
Addition of two expressions. |
RealExp |
power(RealExp exp,
int power)
Power of an expression. |
RealExp |
sin(RealExp exp)
Sinus of an expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Problem problem
Constructor Detail |
---|
public RealModeler(Problem problem)
Method Detail |
---|
public RealVar makeRealVar(java.lang.String name, double inf, double sup)
name
- name of the variableinf
- lower bound of the variablesup
- upper bound of the variablepublic RealVar makeRealVar(double inf, double sup)
inf
- lower bound of the variablesup
- upper bound of the variablepublic RealVar makeRealVar(java.lang.String name)
public Constraint makeEquation(RealExp exp, RealIntervalConstant cst)
exp
- The expressioncst
- The interval this expression should be inpublic Constraint eq(RealExp exp1, RealExp exp2)
public Constraint eq(RealExp exp, double cst)
public Constraint eq(double cst, RealExp exp)
public Constraint leq(RealExp exp1, RealExp exp2)
public Constraint leq(RealExp exp, double cst)
public Constraint leq(double cst, RealExp exp)
public Constraint geq(RealExp exp1, RealExp exp2)
public Constraint geq(RealExp exp, double cst)
public Constraint geq(double cst, RealExp exp)
public RealExp plus(RealExp exp1, RealExp exp2)
public RealExp minus(RealExp exp1, RealExp exp2)
public RealExp mult(RealExp exp1, RealExp exp2)
public RealExp power(RealExp exp, int power)
public RealExp cos(RealExp exp)
public RealExp sin(RealExp exp)
public RealIntervalConstant around(double d)
[d - epsilon, d + epilon]
.
public RealIntervalConstant cst(double d)
public RealIntervalConstant cst(double a, double b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |