Posts by Julia Campos • 157 points
10 posts
-
0
votes1
answer16
viewsA: How to make a function return an array in Minizinc
function array [int] of int: DefinitelyVisited(array[int] of int: x) = let {array [int] of int: xx = array1d(x), } in (arrayXd(x, [ xx[i] == 1 | i in index_set(xx) ] ) ) This function returns an…
minizincanswered Julia Campos 157 -
0
votes1
answer16
viewsQ: How to make a function return an array in Minizinc
I have the following function in Minizinc: function var int: DefinitelyVisited(array[int] of var int: S) = forall( i in index_set(S) ) ( S[i] == 1 ); This function is returning an integer, but I…
minizincasked Julia Campos 157 -
1
votes0
answers18
viewsQ: How do I make this code in Minizinc?
How can I make this code in Minizinc? I tried it this way: constraint forall(i in nurse, j in patient where j != 1)(start[i] == min(arrive[i,j] + ((1-y[i,1,j])*H) - sum(u in…
minizincasked Julia Campos 157 -
1
votes1
answer1090
viewsQ: add accents to gnuplot
How do I place accent on gnuplot x and y axis caption? I’ve tried ascii coding but it doesn’t work # Rótulo do eixo x set xlabel "Iteracoes" font "Helvetica,20" I need the word to be "interactions"…
plotasked Julia Campos 157 -
0
votes1
answer283
viewsQ: Split value in foreach
I need to take the value of two different arrays and put in the database, I tried with the code below, but I’m having difficulty to separate the two values and add each of the values to their…
phpasked Julia Campos 157 -
0
votes3
answers872
viewsA: Split into two parts when it contains more delimiter in string with explode
I decided, I created a special string and blew it up. <?php echo $linha['tipo_produto'].'*'.$linha['nome_marca']?> $prod = explode('*', $produto);
phpanswered Julia Campos 157 -
6
votes3
answers872
viewsQ: Split into two parts when it contains more delimiter in string with explode
$produto = "Leite Pasteurizado, Mucuri, Integral, 1 L"; $prod = explode(" ", $produto); $prod[0]; //tipo_produto = Leite $prod[1]; //marca_produto = Pasteurizado, Mucuri, Integral, 1 L I need you to…
phpasked Julia Campos 157 -
3
votes1
answer652
viewsQ: Concatenate select result
I’m having a hard time showing the results of select the way I want it. I’ll explain first what I have and then what I want, I have two tables in the database: Product type: Product type, Product…
-
2
votes2
answers369
viewsA: How to add everything in MYSQL
Maybe this link will help: https://social.msdn.microsoft.com/Forums/pt-BR/037f4439-9ea3-4db7-be84-61616ddf64d9/somar-valores-da-coluna-do-banco-de-dados-mysql-e-c?forum=vscsharppt. Sum the value of…
-
0
votes2
answers340
viewsQ: Why is my query not working with the php variable
I’m in trouble with my query of mysql. The value is passed from the php form correctly with the $_POST, but when I add the variable to compare the query does not send a response, but if I add the…