Rariusz

30 Reputation

4 Badges

10 years, 354 days

MaplePrimes Activity


These are replies submitted by Rariusz

@Preben Alsholm 

I assume that for more complicated system is bether to have numeric procedure. And I can simulate 

for long range of time.

Thank you for your answer. First of all, I'm a bit confused because at the beginning I used the function

NLPSolve  to find a minimum of the function 

Fun:=proc(x1,x2,u1,u2)
	2*x1*(1+x2)*sigmaF(u1)+(1+x2^2)*sigmaF(u2);
end proc:

and the results are

Optimization:-NLPSolve(Fun(x1,x2,u1,u2), x1=-5..5, x2=-10..100, u1=-1..1, u2=-1..1);
Error, (in Optimization:-NLPSolve) no improved point could be found

However, when we use the minimize function, the result turns out to be good.

I did not notice that I have too many parameters for plot and when I use only x1 and x2 I can plot function.

Thanks for help and comments

 

 

 

 

@tomleslie  Thank you for an interesting example.

@Carl Love  Thank you for your help.

Hello,

I want substitute value for each variable in function based on value from vector or matrix. For example we have x1,x2,...,xn and we have vector of value for each variable [val1,val2,..,valn] and how to substitute values for variables using one command?

Best

 

Thank you for the comments again. Now I have to study all the comments and especially chapter 9 ProgrammingGuide

and try to write my own modules.

 

Best,

Rariusz

Hello,

Thank you for the comments and sample codes.  For me it is very strange that we have to write a lot of

code that perform overloading operators and it's not as intuitive as in other programming languages.

I have to carefully analyze the examples.

My main question is, why we need use static function ? Is this required?

Best,

Rariusz

 

Problem is solved. Thank you for help.

Best

Rariusz

Hello,

Thank you for your helpful suggestions.

 

Best

@Carl Love 

 

Hi

sys:-tf[1,1]; - this work very well :D

I use :

TF11:=sys:-tf[1,1];

PrintSystems(TF11);

Regards,

 

1 2 Page 2 of 2