forum.alglib.net

ALGLIB forum
It is currently Thu Mar 28, 2024 7:41 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.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Simple random shows better results. Help please
PostPosted: Wed Jul 29, 2020 9:02 pm 
Offline

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?
Thank you in advance.

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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 53 guests


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group