Domain error(s) in nonlinear functions. Check bounds on variables.

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Domain error(s) in nonlinear functions. Check bounds on variables.

Post by Archiver »


Hi all,
When I run my model I get this error - Domain error(s) in
nonlinear functions.
Check bounds on variables. when I click on the error it gives me

ERRORS/WARNINGS IN EQUATION EQ64(cext)
1 error(s): vcPower: FUNC DOMAIN: x**c, x < 0

**** ERRORS/WARNINGS IN EQUATION EQ87
1 error(s): vcPower: FUNC DOMAIN: x**c, x < 0

EQ64(x).. EXD(x) =e= EXDO(x)*[e*PWX(x)/PE_fob(x)]**sigma_XD(x);
EQ87.. PIXINV =e= PROD[i$gamma_INV(i),(PC(i)/PCO(i))**gamma_INV(i)];

The error for equation 64 is however peculiar to only one of the
commodities ( cext) out of the 10 commodities in my model. please can
anyone help me fix this.
thanks for your help always


TAIWO ADEREMI
PHD CANDIDATE
UNIVERSITY OF IBADAN


Archiver
User
User
Posts: 7876
Joined: 7 years ago

AW: Domain error(s) in nonlinear functions. Check bounds on variables.

Post by Archiver »


Hi Taiwo
If you define the variable as positive and give a lower bound of 0.0001, you will probably don't have this problem anymore.
Renger

-----Ursprüngliche Nachricht-----
Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von TAIWO ADEREMI
Gesendet: Saturday, October 20, 2012 6:54 PM
An: gamsworld
Betreff: Domain error(s) in nonlinear functions. Check bounds on variables.

Hi all,
When I run my model I get this error - Domain error(s) in nonlinear functions.
Check bounds on variables. when I click on the error it gives me

ERRORS/WARNINGS IN EQUATION EQ64(cext)
1 error(s): vcPower: FUNC DOMAIN: x**c, x < 0

**** ERRORS/WARNINGS IN EQUATION EQ87
1 error(s): vcPower: FUNC DOMAIN: x**c, x < 0

EQ64(x).. EXD(x) =e= EXDO(x)*[e*PWX(x)/PE_fob(x)]**sigma_XD(x);
EQ87.. PIXINV =e= PROD[i$gamma_INV(i),(PC(i)/PCO(i))**gamma_INV(i)];

The error for equation 64 is however peculiar to only one of the commodities ( cext) out of the 10 commodities in my model. please can anyone help me fix this.
thanks for your help always


TAIWO ADEREMI
PHD CANDIDATE
UNIVERSITY OF IBADAN

--
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Domain error(s) in nonlinear functions. Check bounds on variables.

Post by Archiver »

Reply-to: gamsworld@googlegroups.com

Hi Renger,
Thanks for your suggestion. please how do I define the
variable as a positive one and give a lower bound of 0.0001. please I
would be glad if you can be explicit on this. Thanks

Taiwo


On 10/21/12, Renger van Nieuwkoop wrote:
> > Hi Taiwo
> > If you define the variable as positive and give a lower bound of 0.0001, you
> > will probably don't have this problem anymore.
> > Renger
> >
> > -----Ursprüngliche Nachricht-----
> > Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im
> > Auftrag von TAIWO ADEREMI
> > Gesendet: Saturday, October 20, 2012 6:54 PM
> > An: gamsworld
> > Betreff: Domain error(s) in nonlinear functions. Check bounds on variables.
> >
> > Hi all,
> > When I run my model I get this error - Domain error(s) in nonlinear
> > functions.
> > Check bounds on variables. when I click on the error it gives me
> >
> > ERRORS/WARNINGS IN EQUATION EQ64(cext)
> > 1 error(s): vcPower: FUNC DOMAIN: x**c, x >
> > **** ERRORS/WARNINGS IN EQUATION EQ87
> > 1 error(s): vcPower: FUNC DOMAIN: x**c, x >
> > EQ64(x).. EXD(x) =e= EXDO(x)*[e*PWX(x)/PE_fob(x)]**sigma_XD(x);
> > EQ87.. PIXINV =e= PROD[i$gamma_INV(i),(PC(i)/PCO(i))**gamma_INV(i)];
> >
> > The error for equation 64 is however peculiar to only one of the commodities
> > ( cext) out of the 10 commodities in my model. please can anyone help me fix
> > this.
> > thanks for your help always
> >
> >
> > TAIWO ADEREMI
> > PHD CANDIDATE
> > UNIVERSITY OF IBADAN
> >
> > --
> > "gamsworld" group.
> > To post to this group, send email to gamsworld@googlegroups.com.
> > To unsubscribe from this group, send email to
> > gamsworld+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/gamsworld?hl=en.
> >
> > --
> > "gamsworld" group.
> > To post to this group, send email to gamsworld@googlegroups.com.
> > To unsubscribe from this group, send email to
> > gamsworld+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/gamsworld?hl=en.
> >
> >


Post Reply