Click here to Skip to main content
15,903,752 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: conversion color - hexnumber - color Pin
Luc Pattyn13-Sep-07 3:18
sitebuilderLuc Pattyn13-Sep-07 3:18 
GeneralRe: conversion color - hexnumber - color Pin
Tom Deketelaere13-Sep-07 3:26
professionalTom Deketelaere13-Sep-07 3:26 
GeneralRe: conversion color - hexnumber - color Pin
Tim Craig13-Sep-07 18:21
Tim Craig13-Sep-07 18:21 
GeneralRe: conversion color - hexnumber - color Pin
Tom Deketelaere13-Sep-07 20:46
professionalTom Deketelaere13-Sep-07 20:46 
AnswerRe: conversion color - hexnumber - color Pin
Jeremy Falcon25-Sep-07 8:45
professionalJeremy Falcon25-Sep-07 8:45 
QuestionDinamyc priority asignation Pin
Nelek12-Sep-07 4:18
protectorNelek12-Sep-07 4:18 
AnswerRe: Dinamyc priority asignation Pin
Russell'13-Sep-07 6:54
Russell'13-Sep-07 6:54 
GeneralRe: Dinamyc priority asignation Pin
Nelek13-Sep-07 22:52
protectorNelek13-Sep-07 22:52 
First of all, thanks for your answer. I know that is quite extrange, maybe with a little more info...

The fact is that the parameters won't change, I mean... they will be always the same parameters on the formule, but their value (at least in 70% of the parameters DO will change with the time).

Some of the parameters will have a constant value in every mashine, but others will change their value depending on the moment in which they are used. For example (taking the same parameters as above)

Permission can be 0 or 1 depending of the user that comand the mashine, if he wants the mashine to be available to interact with my program or not, or in some critical parts of the process where they have to work at 100% independantly of what happens around.

Already_Activate can be 0 or 1, this parameter will be set/reset by my programm.

Energy depends on the concrete mashine, from one mashine to another may be different, but always constant for every mashine.

Reaction_time is mashine dependant, like the energy. Is the time between my command and the answer to that command.

Non_Stop_Time is variable for every case, it is the time between the last time that the mashine had a command from my programm to the actual moment.

StepValue [Actual] can be variable with the time, but according to a relation of fixed values (the array). In some minutes will have a value, in other moments another value and so on.



Because of that the output of the function will be variable with the time. And this value (priority) is the value that I will check in a for every certain periode of time to choose the mashine that has to receive my commands or specifications. The higher the priority is, has more oportunities to be selected.


The concrete problem is that the formule I have to create should take care of all the parameters with fixed value, the actual moment and the values of the parameters that change with the time.

Trying to write similar to your answer I need a function more o less like that:

Priority = F (par1, par2, ..., parN, f1(t), f2(t), ... fN(t));

I already know (more o less) where the parameters have to be placed (numerator, denominator), but my problem is to connect the terms. I mean... for example:
the boolean values are to allow, discard some terms, because of that are out to multiply the term: Permision * (....) would be like: if (!Permision) {continue;} in the first line of a while (...) or a for (...), but...

I don't know if it's better to use only one fraction and add, substract, multiply... the terms of numerator/denominator. If it's better to use more fractions adding every partial result... If it's better to use only multiplications and divisions and then normalize to a fixed interval... Confused | :confused: Confused | :confused: D'Oh! | :doh:

I would like to have a priority with a similar value with mashines of similar properties, but the tests that I have made give me results that I don't like (differences to big between very similar cases, or too small with very different cases... things like that) Mad | :mad:

It is the first time I have to do something like this. Im not bad with the algorithms, but this is killing me Dead | X| Sniff | :^)

Is there any procedure to reach such a thing? or is just empiric with tests and failures?

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: Dinamyc priority asignation Pin
Russell'14-Sep-07 0:02
Russell'14-Sep-07 0:02 
GeneralRe: Dinamyc priority asignation Pin
Nelek14-Sep-07 0:51
protectorNelek14-Sep-07 0:51 
GeneralRe: Dinamyc priority asignation Pin
Russell'14-Sep-07 1:07
Russell'14-Sep-07 1:07 
GeneralRe: Dinamyc priority asignation Pin
Nelek14-Sep-07 1:51
protectorNelek14-Sep-07 1:51 
GeneralRe: Dinamyc priority asignation Pin
Russell'14-Sep-07 2:17
Russell'14-Sep-07 2:17 
GeneralRe: Dinamyc priority asignation Pin
Nelek25-Sep-07 2:17
protectorNelek25-Sep-07 2:17 
GeneralRe: Dinamyc priority asignation Pin
Russell'25-Sep-07 3:03
Russell'25-Sep-07 3:03 
QuestionSemi automatic forground video segmentation Pin
ptr_Electron12-Sep-07 0:17
ptr_Electron12-Sep-07 0:17 
AnswerRe: Semi automatic forground video segmentation Pin
Russell'12-Sep-07 2:34
Russell'12-Sep-07 2:34 
QuestionCommon path aspect algorithm, help please! Pin
c#_keithy10-Sep-07 4:43
c#_keithy10-Sep-07 4:43 
AnswerRe: Common path aspect algorithm, help please! Pin
Dan Neely10-Sep-07 5:41
Dan Neely10-Sep-07 5:41 
GeneralRe: Common path aspect algorithm, help please! Pin
c#_keithy10-Sep-07 5:45
c#_keithy10-Sep-07 5:45 
GeneralRe: Common path aspect algorithm, help please! Pin
Dan Neely10-Sep-07 6:57
Dan Neely10-Sep-07 6:57 
AnswerRe: Common path aspect algorithm, help please! Pin
Russell'10-Sep-07 6:17
Russell'10-Sep-07 6:17 
QuestionRe: Common path aspect algorithm, help please! Pin
David Crow10-Sep-07 7:23
David Crow10-Sep-07 7:23 
Questioneliminate 50Hz noise in ECG.. Pin
ashwiny9-Sep-07 23:38
ashwiny9-Sep-07 23:38 
AnswerRe: eliminate 50Hz noise in ECG.. Pin
Russell'9-Sep-07 23:56
Russell'9-Sep-07 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.