Community Profile

Contact

Top 1% contributor

Hi, I want to vectorize the calculation of series like this: [R^0;R^0+R^1;R^0+R^1+R^2;...etc. Im quite sure this should b...

4 Answers

0

Asked 2 years ago

i dislike the new lay out of this section, because now only 2 or 3 questions fit on my screen, ie. any overview is lacking and i...

2 Answers

2

Asked 3 years ago

hi, i have a vector X and a vector Y (both in ascending order). for every element in X i want the indexes of the values in Y be...

As an alternative you could make an optimization routine for K only. That way you would not need fminunc. It would look very ...

accepted

1

Answered 3 years ago

if you want to stick more to your orginal formulation: the problem is that your x0 has to be a vector, not an array, so you will...

Matt, you are a king!! This is ace.... really, just what I needed. I do have 1 further question though: is there a way to get t...

8098 views

Responded 3 years ago

i dont think it needs a feasible point to start... i mean, during iterations it can also violate constraints, so i dont see why ...

7023 views

For some reason when fi == 1, NPV_list(1,1) is inserted correctly, but when fi=2 the value gets overwritten, which i dont unders...

3 Answers

well not exactly. the function returns the value for 'return'. and solve tries to set this value to 0. when return = 0 your syst...

5043 views

sorry i didnt mean 1-to1 mapping, but i meant that you can get an explicit expression of p in terms of tau

the solver tries to find the solution "result=0" and does so by adjusting tau. i dont know what you dont understand about that. ...

result' is the function value that fzero tries to equalize to zero: tau=f(p) => tau-f(p)=0. that's it.

I dont understand the error yet. I also get it. My code is: When i run the thing i get the following error message: ??? The c...

4687 views

Responded 2 years ago

i just read that there are initial value solvers for non-linear differential equations, but i honestly have no clue if they coul...

4359 views

this is confusing indeed. but if fmincon wouldnt recognize your setting for the algorithm it would say so, or if it would be swi...

4210 views

Thanks Bruno!! That's a pretty clever way to solve it :-D I was hoping it would be possible in less lines, it seemed such an ea...

3845 views

If one has a vector A and wants to find the index of the value closest to, but larger than zero. I thought this would do the tri...

Posted 3 years ago

Hmm, you are right that i ignored that, because there are examples where the scaling does help. As in your pet example manual sc...

3594 views

Thanks both. From your comments and some more tests, i am convinced that getting the finite differences right is much more impo...

Thanks alot Bruno and Matt.... I think i understand alot better! I still have the question regarding my initial problem. I made...

i have run some additional tests and if i just look at the conditional number, i found that scaling so the gradient gets of simi...

The example was with: f(x,y)=x^2 + 10e4 y^2, and then rescale to f(z,y)=1e-4*(z^2 +y^2); In this example i checked the conditio...

Hmmmm, I see. I still wonder how well the 'internal scaling' works, because in the other thread you also gave an example of bad ...

Thank you so much matt!! It made me think alot more about it. And i think now that i have been silly not to see that i could sca...

I have really thought alot about this, but i still dont know how to achieve this for my particular problem... To formulate it a...

The whole thing is differentiable, so that's not the problem... => What does "inaccurate" mean for you? As long as both the acc...

Thanks for your reply! But S actually depends on C: S are the fractions in each state which are the determined by the transition...

hi, i want to maximize the expected (infinite time) utility. There are X number of states, and the choice variables are consumpt...

the error says that matlab tries to do a operation which requires that two (or more) arrays are of the same size. Apperently the...

3447 views

Sorry to interfere Luca, but i have a question to Matt: "Generally, you want the condition numbers of the Hessian at and near t...

3406 views

Load more