This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************* | |
* OPL 12.7.0.0 Model | |
* Author: Bernd | |
* Creation Date: 26.11.2016 at 18:12:32 | |
*********************************************/ | |
range warehouses = 1..3; | |
range retailers = 1..4; | |
int cost[warehouses][retailers] = [[35,30,40,32],[37,40,42,25],[40,15,20,28]]; | |
int stock[warehouses] = [1200,1000,800]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def cross(X,Y): | |
l = sum = 0 | |
for i in reversed(X): | |
sum = sum + i | |
if sum > l: | |
l = sum | |
r = sum = 0 | |
for i in Y: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
abstract class CrudController extends Controller { | |
protected $model = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers; | |
class HomeController extends Controller { | |
} |
NewerOlder