Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ATFM optimization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hailu, Dawit
ATFM optimization
Commits
3abde29b
Commit
3abde29b
authored
3 years ago
by
daveabiy
Browse files
Options
Downloads
Patches
Plain Diff
library for vardata_lagr.cpp
parent
c744faba
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vardata_lagr.h
+96
-0
96 additions, 0 deletions
src/vardata_lagr.h
with
96 additions
and
0 deletions
src/vardata_lagr.h
0 → 100644
+
96
−
0
View file @
3abde29b
/**@file relax_lagr.cpp
* @ingroup Lagrangian
* @brief lagrangian relaxation
* @author Dawit Hailu
*/
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
#ifndef __SCIP_VARDATA_LAGR__
#define __SCIP_VARDATA_LAGR__
#include
"scip/scip.h"
/** create variable data, in the future I will add the delay array and delay of each var*/
SCIP_RETCODE
SCIPvardataCreateLagrangian
(
SCIP
*
scip
,
/**< SCIP data structure*/
SCIP_VARDATA
*
vardata
,
/**<pointer to the vardata*/
SCIP_VAR
**
vars
,
// SCIP_CONS** VarSlotConss, /**< all slot constraints containing the variable */
// int nVarSlotConss, /**<number of slot constraints the variable is occuring in*/
int
nSlotConss
,
int
v
);
/** gets the slot conss the var is occuring*/
SCIP_CONS
**
SCIPvardataGetSlotConss
(
SCIP_VARDATA
*
vardata
/**< variable data */
);
/** gets the number of slot conss the var is occuring in*/
int
SCIPvardataGetnVarSlotConss
(
SCIP_VARDATA
*
vardata
/**< variable data */
);
/** gets the ids of the slotconss the var is occuring*/
int
*
SCIPvardataGetconsids
(
SCIP_VARDATA
*
vardata
/**< variable data */
);
SCIP_Real
SCIPvarGetQuotient
(
SCIP_VARDATA
*
vardata
);
SCIP_RETCODE
vardataDelete
(
SCIP
*
scip
,
/**< SCIP data structure */
SCIP_VARDATA
**
vardata
/**< vardata to delete */
);
/** prints vardata to file stream */
void
SCIPvardataPrint
(
SCIP
*
scip
,
/**< SCIP data structure */
SCIP_VARDATA
*
vardata
,
/**< variable data */
FILE
*
file
/**< the text file to store the information into */
);
SCIP_RETCODE
vardataCreate
(
SCIP
*
scip
,
/**< SCIP data structure */
SCIP_VARDATA
**
vardata
,
/**< pointer to vardata */
SCIP_CONS
**
VarSlotConss
,
/**< array of constraints ids */
int
nVarSlotConss
,
/**< number of constraints */
SCIP_Real
varquotient
);
/** frees user data of variable */
SCIP_RETCODE
vardatafree
(
SCIP
*
scip
,
/**< SCIP data structure */
SCIP_VARDATA
**
vardata
/**< vardata to delete */
);
SCIP_RETCODE
lagrVarObjoverNVarslotConss
(
SCIP_VARDATA
***
vardata
,
SCIP_VAR
**
var
);
SCIP_Real
SCIPVaraddDualMultiplier
(
SCIP
*
scip
,
SCIP_VAR
**
var
,
SCIP_Real
*
dualmultipliers
,
SCIP_PROBDATA
*
probdata
);
int
SCIPvardataGetVarID
(
SCIP_VARDATA
*
vardata
/**< variable data */
);
SCIP_RETCODE
SCIPvarchangeDuals
(
SCIP
*
relaxscip
,
SCIP_VAR
***
vars
,
SCIP_Real
*
dualmultipliers
,
SCIP_Real
*
origobj
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment