Search found 22 matches

by frds17
3 years ago
Forum: Syntax
Topic: Help with writing equation after solve
Replies: 0
Views: 1690

Help with writing equation after solve

Hi all I am trying to update variable D(t) using equation D(t+1)=(1+n)*G(t)+(1+r)*D(t) so that D(t+2)=(1+n)*G(t) +(1+r) *((1+n)*G(t)+(1+r)*D(t)) Thanks for your help set t /0*300/ ; scalar r /0.05/ n /0.0148/ ; Variables G(t) D(t); G.fx(t)=0.5; D.fx('0')=0.01; D.fx(t+1)=(1+n)*G.l(t)+(1+r)*D.l(t); di...
by frds17
3 years ago
Forum: Solvers
Topic: Conopt all local optimum
Replies: 1
Views: 2808

Conopt all local optimum

Hi all,

Is there a way for Conopt to give me all optimal solution within a bounded set?

Thanks,
Fabio
by frds17
4 years ago
Forum: Syntax
Topic: Run a program
Replies: 4
Views: 3343

Re: Run a program

Hi,

You could use NEOS Server, https://neos-server.org/neos/. You submit your GAMS file on their website and they run the program for you. After, you can download the results and open them on your GAMS software.

Kind regards,
Fabio
by frds17
4 years ago
Forum: Modeling
Topic: MCP is giving me error
Replies: 1
Views: 1855

MCP is giving me error

Hi all,

I am using MCP to solve a model. If I solve for t=5 (MCP5), it gives me a solution. If I solve for t=10 (MCP10), it gives me an error 'infeasible'. Could someone help me solve the problem?

Thanks,
Fabio
MCP5.gms
(1.03 KiB) Downloaded 396 times
MCP10.gms
(1.03 KiB) Downloaded 396 times
by frds17
4 years ago
Forum: Syntax
Topic: Help with loop
Replies: 2
Views: 2368

Re: Help with loop

Hi Renger,

Thanks for your reply.

Fabio
by frds17
4 years ago
Forum: Syntax
Topic: Help with loop
Replies: 2
Views: 2368

Help with loop

Hi all, I need to write a loop to solve the equations below. utility(ii,t)$(ord(t) le card(a)-1).. u=e=(1/(1-1/gamma))*sum(a,ss(a)*((1+beta(ii))**(1-ord(a)))*(1-1/gamma)*log((c(ii,a,t)**(1-1/rho)+alpha*l(ii,a,t)**(1-1/rho))**(1/(1-1/rho)))); asset(ii,a,t).. as(ii,a,t)=e=(1+r)*as(ii,a-1,t-1)+w(t)*e(i...
by frds17
4 years ago
Forum: Modeling
Topic: MCP infeasible
Replies: 1
Views: 10458

MCP infeasible

Hi all, I'm using MCP to solve firm's profit maximization as recommended by a paper. output(t).. Y(t)=e=(kappa*[epsilon*K(t)**(1-1/sigma)+(1-epsilon)*L(t)**(1-1/sigma)]**[1/(1-1/sigma)])-0.5*psi*power(I(t)/K(t)-(n+delta),2)*K(t); wage(t).. (1+cr)*w(t)=e=((1-epsilon)*kappa*L(t)**(-1/sigma)*(epsilon*K...
by frds17
4 years ago
Forum: Modeling
Topic: Error: rPower: FUNC DOMAIN: x**y,x=0,y<0
Replies: 2
Views: 11637

Re: Error: rPower: FUNC DOMAIN: x**y,x=0,y<0

Hi Petros,

I did that and it worked.

Thanks,
Fabio
by frds17
4 years ago
Forum: Modeling
Topic: Error: rPower: FUNC DOMAIN: x**y,x=0,y<0
Replies: 2
Views: 11637

Error: rPower: FUNC DOMAIN: x**y,x=0,y<0

Hi all, I've got an error in equation utility(ii,t).. u=e=(1/(1-1/gamma))*sum(a,S(a)*(beta**(ord(a)-1))*([c(ii,a,t+(ord(a)-1))**(1-1/rho)+alpha*l(ii,a,t+(ord(a)-1))**(1-1/rho)]**(1/(1-1/rho)))**(1-1/gamma)); I have already defined the lower bound c.lo(ii,a,t)=0.01 and l.lo(ii,a,t)=0 If I remove ord(...
by frds17
4 years ago
Forum: Solvers
Topic: Conopt4 says derivative is discontinuos
Replies: 4
Views: 4511

Re: Conopt4 says derivative is discontinuos

Hi Renger,

Thanks for the recommendation, I will try it and see what happens.

Cheers,
Fabio