# forum.alglib.net

ALGLIB forum
 It is currently Tue Sep 10, 2024 7:56 pm

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 1 post ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Simple random shows better results. Help pleasePosted: Wed Jul 29, 2020 9:02 pm

Joined: Wed Jul 29, 2020 8:42 pm
Posts: 1
Hi there.

I'm not good in math, exuse me for maybe simple question.
I have a chain with weights on every edge. I tried different solvers, but all of them shows <= simple random.
I need to find two variables for every vertex where the first is multiplies the previous flow and the other adds it.
Flow on every edge must be less 1 and greater than zero.
Could you hepl me? what I'm doing wrong?

public static void nlcfunc2(double[] x, double[] fi, object obj)
{
fi[0] = 0;
double flow = 1;
for (int i = 0; i < chain.EdgesCount; i++)
{
flow = flow * x[chain[i].vertex * 2] + x[chain[i].vertex * 2 + 1];
if (flow > 1) flow = 1;
if (flow < 0) flow = 0;
fi[0] -= flow * chain[i].delta;
}
}

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

 All times are UTC

#### Who is online

Users browsing this forum: Bing [Bot] and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: